Commit graph

40035 commits

Author SHA1 Message Date
Eli Zaretskii
82f12b2f13 * src/window.c (Frecenter): Improve commentary. 2018-03-02 11:24:24 +02:00
Paul Eggert
ca8afa7672 Require a larger stack size for threads on macOS (bug#30364)
* src/systhread.c (sys_thread_create)
[THREADS_ENABLED && HAVE_PTHREAD && DARWIN_OS]:
Require at least 8MB stack size for x64 and 4MB for x86 on macOS.
Do not merge to master.
2018-02-28 16:31:20 -08:00
Eli Zaretskii
c87d04e05e Avoid aborts in 'md5'
* src/fns.c (extract_data_from_object): Don't crash if called with
an invalid object.  (Bug#30627)
2018-02-27 18:44:15 +02:00
Eli Zaretskii
7e7f2ea644 * src/keyboard.c (syms_of_keyboard): Doc fix. (Bug#30588) 2018-02-24 11:30:02 +02:00
Martin Rudalics
83187cd900 Skip mouse-face overlap check when mouse-face is hidden (Bug#30519)
* src/xdisp.c (note_mouse_highlight): Skip check whether
mouse-face highlighting overlay overlaps other mouse-face
overlays when mouse-face highlighting is hidden (Bug#30519).
2018-02-22 08:50:47 +01:00
Eli Zaretskii
f0d6a16d74 Fix documentation of 'x-underline-at-descent-line'
* doc/emacs/display.texi (Display Custom):
* src/nsterm.m (syms_of_nsterm):
* src/xterm.c (syms_of_xterm):
* src/w32term.c (syms_of_w32term): Mention the effect of
'line-spacing' on the underline position.  (Bug#30553)
2018-02-21 06:20:58 +02:00
Eli Zaretskii
6dc2846a2d * src/data.c (Faref): Fix a typo in the doc string. (Bug#30510) 2018-02-18 18:36:11 +02:00
Noam Postavsky
c352434ab8 Avoid memory corruption with specpdl overflow + edebug (Bug#30481)
If grow_specpdl fails due to outgrowing max_specpdl_size, it will
signal an error *before* growing the specpdl array.  Therefore, when
handling the signal, specpdl_ptr points past the end of the specpdl
array and any further use of of specpdl before unwinding (e.g., if
edebug binds signal-hook-function) will cause memory corruption.
* src/eval.c (signal_or_quit): Don't call `signal-hook-function' if
the specpdl_ptr is already past the end of the specpdl array.
* test/src/eval-tests.el (eval-tests--exceed-specbind-limit)
(eval-exceed-specbind-with-signal-hook): New test & helper function.
2018-02-16 22:13:34 -05:00
Glenn Morris
69107f347b ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
Glenn Morris
9ab3df197f ; Fix doc typos related to indefinite articles 2018-02-16 16:33:36 -05:00
Eli Zaretskii
a22820a31c Avoid aborts in cm.c due to too small TTY frame
* src/frame.c (frame_windows_min_size): Limit TTY frames to a
minimum height large enough to allow for a menu bar, the mode
line, one text line and one echo-area line.  This avoids aborts in
cm.c:cmcheckmagic.  (Bug#30320)
2018-02-12 20:02:36 +02:00
Noam Postavsky
565adf2e90 Clarify that text-quoting-style doesn't affect *Info* (Bug#24519)
* src/doc.c (syms_of_doc) <text-quoting-style>: Clarify that info
manual display is unaffected.
2018-02-08 20:32:47 -05:00
Noam Postavsky
19fa6d561a Fix --no-build-details for w32 and macOS
* src/w32term.c (w32_initialize_display_info): Handle nil system-name.
* lisp/term/ns-win.el (window-system-initialization): Don't pass nil
to `x-open-connection'.
2018-02-08 19:10:11 -05:00
Paul Eggert
c2727e3c40 Fix crashes when run with --no-build-details
* src/xrdb.c (get_environ_db):
* src/xterm.c (same_x_server, x_term_init):
Don’t assume Fsystem_name returns a string.
2018-02-08 09:31:20 -08:00
Noam Postavsky
04c5bd5b1f Doc fixes for process functions (Bug#30349)
* doc/lispref/processes.texi (Asynchronous Processes): Explain what
the 'stopped' state means for a pipe process.
* src/process.c (Fmake_process, Fmake_pipe_process)
(Fmake_serial_process, Fmake_network_process):
* lisp/subr.el (start-process):
* lisp/net/tls.el (open-tls-stream):
* lisp/net/starttls.el (starttls-open-stream):
* lisp/net/gnutls.el (open-gnutls-stream): Remove meaningless phrase
"specify an output stream" phrase from docstring.
2018-02-07 20:17:50 -05:00
Eli Zaretskii
1ed408995a Update xdisp.c commentary
* src/xdisp.c: Update commentary regarding "asynchronous" entry
into redisplay.  (Bug#30182)
2018-02-03 12:19:41 +02:00
Noam Postavsky
2b35ed0b0c Document external-debugging-output in the Elisp Manual (Bug#24051)
* doc/lispref/streams.texi (Output Streams): List
external-debugging-output.
* src/print.c (Fexternal_debugging_output): Quote `print' in
docstring.
2018-01-30 22:29:13 -05:00
Noam Postavsky
db6564cde0 Fix scroll-margin docstring (Bug#13791)
* src/xdisp.c (syms_of_xdisp) <scroll-margin>: Explain that entering
the margin may trigger any sort of auto scrolling, not recentering
specifically.
2018-01-30 22:29:13 -05:00
Noam Postavsky
16022626ba Clarify effect of print-gensym (Bug#27776)
* src/print.c (syms_of_print) <print-gensym>: Clarify that use of #N#
and #N= constructs depends on the value of `print-circle'.
2018-01-30 22:14:02 -05:00
Noam Postavsky
0510a78da5 Revert "Signal error for symbol names with strange quotes (Bug#2967)"
That commit did not make the corresponding change to printing, thus
breaking the (eq (read (prin1-to-string SYM)) SYM) invariant for those
symbols.  It's too late in the release cycle to change printing
behavior, therefore revert the reader change.

Don't merge to master, the print function will be updated there (see
"Fix round tripping of read->print for symbols with strange quotes").
2018-01-28 10:49:51 -05:00
Eli Zaretskii
22f98b31e3 * src/indent.c (Findent_to): Doc fix. (Bug#30260) 2018-01-27 12:11:28 +02:00
Noam Postavsky
7bbea90b1a * src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765). 2018-01-26 19:50:57 -05:00
Noam Postavsky
50fcbb5f61 ; * src/process.c (Fprocess_contact): Fix docstring typo. 2018-01-26 19:50:57 -05:00
Robert Pluim
1412cf3edd Fix a few issues with latest GTK scaling changes
* src/xfns.c (Fx_display_monitor_attributes_list): Call
gdk_screen_get_monitor_scale_factor only for GTK versions
3.10..3.21.
* src/xterm.c (x_set_offset): Call xg_get_scale for GTK only.
2018-01-24 20:08:35 +01:00
Robert Pluim
59db8dca03 Use scaled coordinates when calling into GTK
This is part two of a two part fix for the GTK scaling
problems.  See the thread starting at
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html
for an explanation of why it has been added to Emacs 26.

* src/gtkutil.c (xg_set_geometry): Scale down the coordinates that we
pass to gtk_window_move and to gtk_window_parse_geometry.
* src/xterm.c (x_set_offset): Likewise.
2018-01-24 08:55:34 +01:00
Robert Pluim
2892f05792 Scale monitor dimensions obtained from GTK
This is part one of a two part fix for the GTK scaling
problems.  See the thread starting at
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00372.html
for an explanation of why it has been added to Emacs 26.

* src/xfns.c (Fx_display_monitor_attributes_list): Take scaling factor
into account when using GTK to query the monitor dimensions, which
allows frameset-restore to position frames correctly.
2018-01-24 08:53:59 +01:00
Eli Zaretskii
a41ad3df9f Don't unnecessarily use non-ASCII characters in C sources
* src/xwidget.c (webkit_javascript_finished_cb):
* src/gtkutil.c (xg_check_special_colors):
* src/emacs-module.c (module_make_string):
* src/alloc.c (SET_STACK_TOP_ADDRESS): Don't use non-ASCII quote
characters.
2018-01-19 11:54:44 +02:00
Glenn Morris
8ba5b85161 An overdue update of src/emacs-icon.h
* src/emacs-icon.h: Update to the Emacs 25 icon.  (Bug#30047)
Converted from hicolor/scalable/apps/emacs.svg using Gimp.
2018-01-14 17:27:19 -08:00
Martin Rudalics
47aa85c7ec In nsterm.m use FRAME_NS_P instead of FRAME_X_P (Bug#30019)
* src/nsterm.m (x_set_parent_frame): Call FRAME_NS_P instead
of FRAME_X_P (Bug#30019).
2018-01-13 08:59:31 +01:00
Philipp Stephani
9c2b11484f Inherit query-on-exit flag to stderr process (Bug#30031)
* src/process.c (Fmake_process): Have the pipe process honor the
parent's query-on-exit flag.

* test/src/process-tests.el (make-process/noquery-stderr): New test.
2018-01-10 15:43:52 +01:00
Alan Third
f92264fc2a Fix child frame placement issues (bug#29953)
* src/nsterm.h (NS_PARENT_WINDOW_LEFT_POS):
(NS_PARENT_WINDOW_TOP_POS): Get the parent frame through the frame
struct as invisible child windows are detached from their parents in
NS.
* src/nsterm.m (x_set_offset): Offscreen frames have `nil' screen
value, so handle that gracefully.  Child frames with negative left and
top should be positioned relative to the bottom right of the parent
frame.
2018-01-06 23:10:21 +00:00
Eli Zaretskii
3a22097cf6 Fix valgrind report in call-interactively
* src/callint.c (Fcall_interactively): Don't try to access more
bytes than are available in the interactive spec.  (Bug#30004)
2018-01-06 18:23:52 +02:00
Eli Zaretskii
d5f1c87bfe * src/editfns.c (Fsave_excursion): Doc fix. (Bug#30001) 2018-01-06 17:14:41 +02:00
Eli Zaretskii
a377c652b5 Fix Dired display and operations on file names with raw bytes
* src/coding.c (decode_coding): When flushing remaining raw bytes
from multibyte text, copy 2-byte forms of eight-bit-*
characters as single characters, not as 2 raw bytes.  (Bug#29189)
2018-01-06 10:56:21 +02:00
Glenn Morris
d9d6e8a04c ; Comments related to src/termcap.c 2018-01-05 18:50:31 -08:00
Alan Third
4e20c8f220 Fix menu keyboard shortcuts on macOS (Bug#29595)
* src/nsmenu.m (addItemWithWidgetValue)[NS_IMPL_COCOA]: It looks like
macOS 10.13 no longer ignores long modifier strings, so explicitly use
an empty string.
2018-01-01 13:32:49 +00:00
Paul Eggert
5c7dd8a783 Update copyright year to 2018
Run admin/update-copyright.
2018-01-01 00:57:59 -08:00
Eli Zaretskii
0c78822c70 Fix subtle problem with scroll-down when scroll-margin is nonzero
* src/window.c (window_scroll_pixel_based): Account for
scroll-margin when scrolling down, i.e. moving window-start
towards the beginning of the buffer.  Reported by zhang cc
<ccsmile2008@outlook.com> in
http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00894.html.
2017-12-29 23:41:20 +02:00
Stefan Monnier
e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846
Don't mess with the lock file when inhibit_modification_hooks is set,
just like we do in prepare_to_modify_buffer_1.
2017-12-28 14:03:07 -05:00
Eli Zaretskii
81b1028b63 Improve documentation of 'inhibit-modification-hooks' and friends
* src/buffer.c (Fset_buffer_modified_p)
(Frestore_buffer_modified_p): Doc fixes.
* src/insdel.c (syms_of_insdel) <inhibit-modification-hooks>:
Document in the doc string that this variable also inhibits file
locks and active region handling.  (Bug#29846)
2017-12-28 19:23:34 +02:00
David Pathakjee
7175496d7a Fix doc string of 'enable-recursive-minibuffers'
* src/minibuf.c (syms_of_minibuf) <enable-recursive-minibuffers>:
Doc fix.  (Bug#29873)

Copyright-paperwork-exempt: yes
2017-12-28 18:59:42 +02:00
Eli Zaretskii
720ed0b533 Avoid crashes when ':eval' deletes our frame
* src/xdisp.c (display_mode_element): Signal an error if
':eval' somehow deletes the frame whose window we are
redisplaying. (Bug#29726)
2017-12-23 13:59:07 +02:00
Eli Zaretskii
ad2a47ce83 ; * src/xdisp.c (extend_face_to_end_of_line): Fix last change. 2017-12-21 20:28:55 +02:00
Eli Zaretskii
de7de9cc0c Prevent infloop in redisplay on TTY frames
* src/xdisp.c (extend_face_to_end_of_line): Avoid infloop when
filling up display margins with the default face's background.
(Bug#29789)
2017-12-21 19:43:07 +02:00
Ted Zlatanov
b3f4a3a5ae
Special-case %DUMBFW for GnuTLS between 3.2.5 and 3.5.1
* src/gnutls.c: Introduce HAVE_GNUTLS_EXT__DUMBFW for GnuTLS >= 3.2.5.
(Fgnutls_available_p): Use it.
2017-12-20 20:12:42 -05:00
Andy Moreton
c2ae057d0e
Work around GnuTLS version issues with %DUMBFW (tiny change)
* src/gnutls.c: Introduce HAVE_GNUTLS_EXT_GET_NAME and use it.
(init_gnutls_functions): Use it.
(Fgnutls_available_p): Use it (Bug#25061). Fix Vlibrary_cache bug.
2017-12-20 20:07:54 -05:00
Robert Pluim
4122d54067 Fix updating scrollbar sizes when scaling is in effect
* src/gtkutil.c (xg_update_scrollbar_pos): Update width of
scrollbar when scaling is in effect.
(xg_update_horizontal_scrollbar_pos): Update scrollbar size
when scaling is in effect.
2017-12-20 09:24:17 +01:00
Ted Zlatanov
21a212f9e2
Collect GnuTLS extensions and use them to set %DUMBFW if supported
* lisp/net/gnutls.el (gnutls-boot-parameters): Use it to set %DUMBFW
only when it's supported as "ClientHello Padding" (Bug#25061).

* src/gnutls.c (Fgnutls_available_p): Get extension names and
put them in the GnuTLS capabilities, using a hard-coded limit
of 100 since GnuTLS MAX_EXT_TYPES is not exported.
2017-12-19 12:43:56 -05:00
Eli Zaretskii
7890864413 Improve documentation of 'invisible-p'
* doc/lispref/display.texi (Invisible Text): Document the return
value of 'invisible-p'.

* src/xdisp.c (Finvisible_p): Rename the argument POS.  Doc fix.
(Bug#29721)
2017-12-16 12:15:06 +02:00
Martin Rudalics
a1327bbc64 Remove one more check that Vframe_list is non-nil
* src/dispnew.c (check_glyph_memory): Remove no-longer-needed
check that Vframe_list is non-nil, as FOR_EACH_FRAME no longer
assumes that.
2017-12-16 10:14:29 +01:00