summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Rename thread-alive-p to thread-live-pMichael Albinus2018-08-311-7/+10
| | | | | | | | | | | | | | | * doc/lispref/threads.texi (Basic Thread Functions): Use thread-live-p. * etc/NEWS: 'thread-alive-p' has been renamed to 'thread-live-p'. * src/thread.c (thread_live_p): Rename from thread_alive_p. Adapt all callees. (Fthread_live_p): Rename from Fthread_alive_p. (syms_of_threads): Make thread-alive-p an alias of thread-live-p. * test/src/thread-tests.el (all): Replace `thread-alive-p' by `thread-live-p'. (threads-live): Rename from `threads-alive'.
* Avoid infinite hscrolling loops when line numbers are displayedEli Zaretskii2018-08-281-8/+12
| | | | | * src/xdisp.c (maybe_produce_line_number): Don't produce line numbers if we don't have enough screen estate. (Bug#32351)
* Avoid crashes in malformed defvarEli Zaretskii2018-08-281-1/+1
| | | | | | * src/eval.c (Fdefvar): Don't call XSYMBOL on something that might not be a symbol. This avoids crashes due to malformed 'defvar' forms. (Bug#32552)
* Fix detection of freed emacs_values (Bug#32479)Sergey Vinokurov2018-08-251-4/+4
| | | | | | | | | | | * src/emacs-module.c (module_free_global_ref): Compare a value to be freed with all entries of the list. * test/data/emacs-module/mod-test.c (Fmod_test_globref_free): New function. (emacs_module_init): Make it accessible from Lisp. * test/src/emacs-module-tests.el (mod-test-globref-free-test): New test which uses it.
* Avoid crashes with very wide TTY frames on MS-WindowsEli Zaretskii2018-08-251-4/+26
| | | | | | | | | | | * src/w32console.c <glyph_base>: Reduce the number of elements to 80. <glyphs, glyphs_len>: New static variables. (w32con_clear_end_of_line): If the line is wider than the current size of the "empty row" in 'glyphs', reallocate 'glyphs' to support the full width of the frame. This avoids segfaults when the frame is wider than 256 columns. (Bug#32445)
* Update GNOME bugtracker URLsGlenn Morris2018-08-244-5/+5
| | | | | | | | * configure.ac, admin/notes/multi-tty, etc/PROBLEMS: * src/emacs.c (main): * src/xterm.c (x_connection_closed): Update GNOME bugtracker URLs. ; * src/gtkutil.c (xg_display_close): ; * src/image.c (svg_load_image): Update URLs in comments.
* Port better to x86 -fexcess-precision=fastPaul Eggert2018-08-131-14/+29
| | | | | | | | | | | | | Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-08/msg00380.html * src/data.c (arithcompare): Work around incompatibility between gcc -fexcess-precision=fast and the C standard on x86, by capturing the results of floating-point comparisons before the excess precision spontaneously decays. Although this fix might not work in general, it does work here and is probably good enough for the platforms we care about. (cherry picked from commit a84cef90957f2379cc0df6bd908317fc441971ce)
* * src/alloc.c: Remove obsolete comments.Paul Eggert2018-08-111-4/+0
|
* Fix copying text properties by 'format'Eli Zaretskii2018-08-091-2/+10
| | | | | | | | | | * src/editfns.c (styled_format): Add the spec beginning index to the info recorded for each format spec, and use it to detect the case that a format spec and its text property end where the next spec with another property begins. (Bug#32404) * test/src/editfns-tests.el (format-properties): Add tests for bug#32404.
* Make async :family 'local failures fail correctly againLars Ingebrigtsen2018-08-083-10/+25
| | | | | | | | | | | | * src/fileio.c (get_file_errno_data): Refactor out into its own function so that we can reuse the error handling from an async context (bug#31901). * src/process.c (connect_network_socket): When an async :family 'local client fails (with a file error, for instance), mark the process as failed. (cherry picked from commit 92ba34d89ac4f5b5bbb818e1c39a3cc12a405790)
* Improve documentation of 'set-fontset-font'Eli Zaretskii2018-08-081-12/+15
| | | | | | * doc/lispref/display.texi (Fontsets): Fix description of 'set-fontset-font'. * src/fontset.c (Fset_fontset_font): Doc fix. (Bug#32401)
* Avoid assertion violations in maybe_produce_line_numberEli Zaretskii2018-08-021-0/+1
| | | | | | | | * src/xdisp.c (redisplay_window): Make sure desired_matrix is cleared before calling try_window. This is important when display-line-numbers is non-nil, because line-number display code assumes each glyph row is completely cleared when it is called to produce a line number. (Bug#32358)
* Avoid assertion violations in set_text_properties_1Eli Zaretskii2018-08-021-2/+18
| | | | | | * src/textprop.c (set_text_properties): If the call to modify_text_properties modifies the interval tree as side effect, recalculate the correct interval for START and END. (Bug#32265)
* Fix last change in 'char_width'Eli Zaretskii2018-07-291-4/+7
| | | | | * src/character.c (char_width): Make sure variable C is always initialized. (Bug#32276)
* Fix calls to modifications hooks in replace-buffer-contentsEli Zaretskii2018-07-271-16/+3
| | | | | | | * src/editfns.c (Freplace_buffer_contents): Call the modification hooks on the entire region where replacements could have taken place. The previous attempts of being more accurate just introduced bugs. (Bug#32278)
* * src/character.c (char_width): Support glyphs with faces. (Bug#32276)Eli Zaretskii2018-07-271-6/+9
|
* Fix last change in editfns.cEli Zaretskii2018-07-211-11/+4
| | | | | | * src/editfns.c (Freplace_buffer_contents): Fix last change: always call buffer modification hooks, even if nothing was deleted/inserted. (bug#32237)
* Fix calls to buffer modification hooks from replace-buffer-contentsEli Zaretskii2018-07-211-5/+12
| | | | | * src/editfns.c (Freplace_buffer_contents): Don't call buffer modification hooks if nothing was deleted/inserted. (Bug#32237)
* Improve doc strings of several variables in keyboard.cEli Zaretskii2018-07-211-13/+15
| | | | | | | * src/keyboard.c (syms_of_keyboard) <debug-on-event> <attempt-stack-overflow-recovery> <attempt-orderly-shutdown-on-fatal-signal>: Make sure the first sentence of the doc string fits on a single line.
* Avoid assertion violations in gnutls.cEli Zaretskii2018-07-171-6/+32
| | | | | | * src/gnutls.c (Fgnutls_hash_digest, gnutls_symmetric) (Fgnutls_hash_mac): Check CONSP before invoking XCDR. (Bug#32187) Report values of invalid arguments when signaling an error.
* Fix format error in Faccept_process_outputMichael Albinus2018-07-131-6/+5
| | | | | * src/process.c (Faccept_process_output): Do not use format spec "%p", it isn't valid for error().
* Lessen stack consumption in recursive read1Paul Eggert2018-07-121-1/+1
| | | | | * src/lread.c (read1): Shrink local buffer size from MAX_ALLOCA to 128 (Bug#31995).
* Fix previous make-network-process changeNoam Postavsky2018-07-121-1/+1
| | | | | | | | * src/process.c (Fmake_network_process): On 2018-07-09 "Explicitly reject :server and :nowait (Bug#31903)", the sense of the SERVER check was accidentally reversed so that we ended up looking for the wrong ADDRESS. Reported by T.V Raman in <https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00437.html>.
* Provide feature 'threadsMichael Albinus2018-07-121-0/+2
| | | | | | | * src/thread.c (syms_of_threads): Provide feature "threads". * test/src/thread-tests.el (top): Declare the functions. (all): Use (featurep 'threads) check.
* Explicitly reject :server and :nowait (Bug#31903)Noam Postavsky2018-07-091-15/+11
| | | | | | | | | | * src/process.c (Fmake_network_process): Explicitly check for and signal an error when passed both :server and :nowait non-nil. In Emacs 25, :nowait would be ignored in this case, but as of Emacs 26.1 this gives an error, albeit an unclear one. Also remove obsolete comment regarding configurations lacking non-blocking mode, the corresponding code was removed in 2012-11-17 "Assume POSIX 1003.1-1988 or later for fcntl.h."
* Fix bootstrap infloop in GNU/Linux alphaPaul Eggert2018-07-081-2/+4
| | | | | * src/emacs.c (main): Do not re-exec if EMACS_HEAP_EXEC is already set (Bug#32083).
* Fix bug #11732Eli Zaretskii2018-07-071-7/+7
| | | | | * src/w32fns.c (w32_wnd_proc): Fix handling of Windows input methods. (Bug#11732)
* Speed up 'replace-buffer-contents' some moreEli Zaretskii2018-07-031-2/+7
| | | | | | | | * src/editfns.c (EXTRA_CONTEXT_FIELDS): New members beg_a and beg_b. (Freplace_buffer_contents): Set up ctx.beg_a and ctx.beg_b. (buffer_chars_equal): Use ctx->beg_a and ctx->beg_b instead of calling BUF_BEGV, which is expensive. This speeds up the recipe in bug#31888 by 30%.
* Document internal use of 'above-suspended' z-group frame parameterMartin Rudalics2018-07-012-1/+25
| | | | | | * src/w32fns.c (w32_dialog_in_progress, x_set_z_group): * src/xterm.c (x_set_z_group): Clarify the internal use of 'above-suspended' when setting a frame's 'z-group' parameter.
* Increase max-lisp-eval-depth adjustment while in debugger (bug#31919)Gemini Lasswell2018-06-301-2/+6
| | | | | | | * src/eval.c (call_debugger): Increase the amount of extra Lisp evaluation depth given to the debugger to allow it to call cl-print. * lisp/emacs-lisp/debug.el (debugger-setup-buffer): Add a comment to suggest updating call_debugger when changing print-level.
* Improve on last change in replace-buffer-contentsEli Zaretskii2018-06-301-3/+16
| | | | | | * src/editfns.c (Freplace_buffer_contents): Call modification hooks only for the actual region where changes are made. (Bug#31888)
* * src/lisp.h: Omit obsolete comment re bytecode stack.Paul Eggert2018-06-291-10/+8
|
* Speed up replace-buffer-contentsEli Zaretskii2018-06-291-25/+58
| | | | | | | | | | | | | | | | | | * src/editfns.c (EXTRA_CONTEXT_FIELDS): Add a_unibyte and b_unibyte members. (rbc_quitcounter): New static variable. (Freplace_buffer_contents): Initialize a_unibyte, b_unibyte, and rbc_quitcounter. Inhibit modification hooks if they were not already inhibited. Use rarely_quit to allow user to quit, to avoid calling maybe_quit too frequently (which hurts performance). Remove redundant assertions (which hurt performance too much). Call signal_after_change and update_compositions after all the changes are done. (buffer_chars_equal): Remove redundant assertions (which hurt performance). Avoid using BUF_FETCH_CHAR_AS_MULTIBYTE, which hurts performance by referencing Lisp symbols; instead, use lower-level macros with explicit tests to select which macro to use. (Bug#31888)
* Avoid compiler warning using coding.hEli Zaretskii2018-06-271-0/+4
| | | | | * src/coding.h: Add INLINE_HEADER_BEGIN..INLINE_HEADER_END, since this header now has an extern INLINE function.
* * src/xdisp.c (Vmouse_autoselect_window): Clarify doc-string (Bug#31975)Martin Rudalics2018-06-271-2/+4
|
* Revert previous patch; comment was OK after all.Paul Eggert2018-06-241-2/+2
|
* Fix lead comment for count_trailing_zero_bitsPaul Eggert2018-06-241-2/+2
| | | | * src/data.c (count_trailing_zero_bits): Fix comment to match code.
* * src/editfns.c (Fformat): Make %x easier to spot in doc string. (Bug#31945)Eli Zaretskii2018-06-231-1/+2
|
* Improve responsiveness while in 'replace-buffer-contents'Eli Zaretskii2018-06-231-7/+20
| | | | | | | | | * src/editfns.c (buffer_chars_equal): Avoid calling buf_charpos_to_bytepos when the buffer is plain-ASCII. Suggested by Milan Stanojević <mstanojevic@janestreet.com>. Call maybe_quit to improve responsiveness. (Freplace_buffer_contents): Call maybe_quit. Warn in the doc string that the function could be slow. (Bug#31888)
* Avoid segfaults in replace-buffer-contents with large buffersEli Zaretskii2018-06-221-2/+3
| | | | | * src/editfns.c (Freplace_buffer_contents): Don't release malloc'ed memory as long as we are using it. (Bug#31888)
* Adjust for scaling for mode-line popup menus (Bug#31880)Robert Pluim2018-06-221-1/+16
| | | | | * src/xmenu.c (menu_position_func) [HAVE_GTK3]: Take scaling into account when calculating screen size.
* Fix vertical-motion with 'visual' line-number displayEli Zaretskii2018-06-181-2/+1
| | | | | * src/indent.c (Fvertical_motion): Don't exempt 'visual' sty;e of line-number display from X coordinate adjustments. (Bug#31875)
* Handle NSAttributedString inputs (bug#29837)Alan Third2018-06-171-2/+9
| | | | | | ; Do not merge to master. * src/nsterm.m (EmacsView::insertText): Handle NSAttributedString.
* Allow inserting non-BMP charactersPhilipp Stephani2018-06-173-13/+43
| | | | | | | | | | * src/coding.h (UTF_16_HIGH_SURROGATE_P, UTF_16_LOW_SURROGATE_P): Move from coding.c and document. (surrogates_to_codepoint): New function. * src/nsterm.m (insertText:): Properly handle surrogate pairs. (cherry picked from commit 703ac3ea1c1ce381f385469a0e88bc29d3fe83c2)
* Prevent errant scroll on mouse click (Bug#31546)Aaron Jensen2018-06-171-1/+1
| | | | | | | * src/nsterm.m (ns_mouse_position): Use correct frame when determining mouse position. * lisp/mouse.el (mouse-drag-track): Only account for mode-line height if `mode-line-format' is non-nil.
* Reject invalid 5-byte sequences when detecting UTF-8 encodingEli Zaretskii2018-06-152-2/+6
| | | | | | | | * src/coding.c (detect_coding_utf_8): Reject multibyte sequences whose leading byte is greater than MAX_MULTIBYTE_LEADING_CODE. (Bug#31829) * src/character.h (MAX_MULTIBYTE_LEADING_CODE): Add commentary about the connection between the value of this macro and MAX_CHAR.
* Fix 'replace-buffer-contents' in multibyte buffersEli Zaretskii2018-06-151-2/+11
| | | | | | | | | * src/editfns.c (buffer_chars_equal): Pass a byte position to BUF_FETCH_CHAR_AS_MULTIBYTE, not a character position. (Bug#31837) * test/src/editfns-tests.el (replace-buffer-contents-bug31837): New test.
* Make 'tags' targets respect --with-silent-rules (Bug#31744)Noam Postavsky2018-06-121-2/+3
| | | | | | | * lwlib/Makefile.in (TAGS): * lisp/Makefile.in (TAGS): * src/Makefile.in (TAGS): Use AM_V_GEN and AM_V_at. * src/Makefile.in: Note that TAGS are generated in build dir.
* Enlarge DUMPED_HEAP_SIZE for 64-bit Windows buildsEli Zaretskii2018-06-091-1/+1
| | | | | * src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 23MB. Reported by Andy Moreton <andrewjmoreton@gmail.com>.
* Fix unexpected jumps of window-point in 'set-window-configuration' (Bug#31695)Martin Rudalics2018-06-071-9/+22
| | | | | | * src/window.c (Fset_window_configuration): Prevent that the fix for Bug#12208 affects restoration of window points when using separate minibuffer frames (Bug#31695).