aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * src/editfns.c (Finsert_char): Add docstring reference to read-char-by-name.Juri Linkov2021-05-221-2/+2
|
* Merge from origin/emacs-27Glenn Morris2021-05-221-4/+4
|\ | | | | | | | | 30e5d93ee1 (origin/emacs-27) Improve documentation of display tables 8804ac857b * src/buffer.c (syms_of_buffer) <ctl-arrow>: Doc fix. (Bu...
| * * src/buffer.c (syms_of_buffer) <ctl-arrow>: Doc fix. (Bug#48539)Eli Zaretskii2021-05-211-4/+4
| |
* | * Fix ahead-of-time native compilation for out-of-tree builds (bug#48497)Andrea Corallo2021-05-211-1/+2
| | | | | | | | | | * src/comp.c (Fcomp_el_to_eln_rel_filename): Expand 'PATH_DUMPLOADSEARCH' while computing 'loadsearch_re_list'.
* | Fix arg-out-of-range errors in 'line-number-at-pos'Eli Zaretskii2021-05-201-1/+1
| | | | | | | | | | | | | | * src/fns.c (Fline_number_at_pos): Pass character position to args_out_of_range. Suggested by Andreas Schwab <schwab@linux-m68k.org>. Call args_out_of_range_3 to show both ends of the accessible portion.
* | Make sure gmalloc's hybrid_free preserves errnoEli Zaretskii2021-05-201-2/+20
| | | | | | | | | | | | | | * src/gmalloc.c (hybrid_free_1): New function, with the body of the previous 'hybrid_free'. (hybrid_free): Call 'hybrid_free_1' while preserving the value of 'errno'. Suggested by Paul Eggert <eggert@cs.ucla.edu>.
* | Clean up the fix for unexec build on GNU/LinuxEli Zaretskii2021-05-202-11/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/conf_post.h [HYBRID_MALLOC || DARWIN_OS && HAVE_UNEXEC]: Include <stdlib.h> here, before redirecting 'malloc' and friends to their hybrid_* and unexec_* equivalents. #undef malloc and friends before redefining. Provide prototypes for the replacements. Suggested by Paul Eggert <eggert@cs.ucla.edu>. * src/gmalloc.c [HYBRID_MALLOC]: Remove declarations of 'malloc' and friends, as they are now redundant: we include <stdlib.h> in conf_post.h before redefining 'malloc' etc., and that provides prototypes from system headers. * configure.ac (HYBRID_MALLOC): Remove kludge to avoid replacement of 'free' by Gnulib. (Bug#36649)
* | ; * src/fns.c (Fline_number_at_pos): Fix doc string and comments.Eli Zaretskii2021-05-201-7/+9
| |
* | Avoid crashes in condition-caseEli Zaretskii2021-05-171-3/+6
| | | | | | | | | | * src/eval.c (internal_lisp_condition_case): Don't take XCAR without making sure the value is a cons cell. (Bug#48479)
* | Remove unreliable test for match data clobberingNoam Postavsky2021-05-161-6/+5
| | | | | | | | | | | | * src/search.c (Freplace_match): Don't test for change in search_regs start and end, this is unreliable if change hooks modify text earlier in the buffer (bug#35264).
* | Fix segfaults when byte-compiling with native-compilationEli Zaretskii2021-05-153-3/+11
| | | | | | | | | | | | | | | | | | | | * src/emacs.c (main): Call 'set_initial_minibuffer_mode' before entering recursive-exit. * src/minibuf.c (init_minibuf_once_for_pdumper): Don't call 'set_minibuffer_mode' here... (set_initial_minibuffer_mode): ... set it in this new function. (Bug#48446) * src/lisp.h: Add prototype for 'set_initial_minibuffer_mode'.
* | Miscellaneous corrections to src/minibuf.c for bug #48337Alan Mackenzie2021-05-151-7/+9
| | | | | | | | | | | | | | | | * src/minibuf.c (read_minibuf): Call get_minibuffer before incrementing minibuf_level, in case a hook function calls Factive_minibuffer_window. (init_minibuf_once_for_pdumper): Create *Minibuf-0* here (moved from init_minibuf_once), and set its mode, so that clicking in the mini-window immediately after start up works (thanks, Eli Z.).
* | Have X builds handle VisibilityNotify events (Bug#48268, Bug#48413)Martin Rudalics2021-05-151-0/+5
| | | | | | | | | | * src/xterm.c (handle_one_xevent): Handle VisibilityNotify events (Bug#48268, Bug#48413).
* | Various detailed fixes to minibuf.c, etc., to fix bug #48337Alan Mackenzie2021-05-142-15/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix some unsafe coding. * lisp/window.el (push-window-buffer-onto-prev): New function, extracted from (record-window-buffer): Refactor by extracting the above, and removing the now redundant parameter DO-MINIBUF. * src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Replace calls to get_minibuffer (0) by nth_minibuffer (0). Replace calls to Qrecord_window_buffer by calls to Qpush_window_buffer_onto_prev. (Factive_minibuffer_window, read_minibuf_unwind): Call abort_emacs should an "impossible" null value be returned by nth_minibuffer. (read_minibuf): Move the get_minibuffer_call to just after the incrementation of minibuf_level as a precaution against a missing buffer in Vminibuffer_list. (nth_minibuffer): Replace XCAR by Fcar, to allow (car nil) to work. (init_minibuf_once): Create the inactive buffer *Minibuf-0*. (syms_of_minibuf): New DEFSYM, Qpush_window_buffer_onto_prev. * src/window.c (restore_window_configuration): Replace some XCARs and XCDRs by Fcar_safe and Fcdr_safe.
* | Merge from origin/emacs-27Glenn Morris2021-05-1311-28/+28
|\ \ | |/ | | | | | | | | | | | | | | | | | | bcd92b5708 (origin/emacs-27) Improve documentation of Hexl mode c233f4eccd ; * etc/NEWS: Fix decoded-time-set-defaults typo. 4c3abb3dd1 Fix compilation errors with latest w32 API headers 127f1f330b Improve doc strings in log-edit.el e36183ff46 ; * etc/TODO (etc/DOC): Update the todo entries. # Conflicts: # etc/NEWS
| * Fix compilation errors with latest w32 API headersEli Zaretskii2021-05-0911-28/+28
| | | | | | | | | | | | * src/w32common.h: Rename OS_* to OS_SUBTYPE__*, as w32 API headers started defining OS_NT, which breaks the use of the enumeration. All users changed. (Bug#48303)
* | Process sentinels need to work under X and commandlinedickmao2021-05-133-8/+10
| | | | | | | | | | | | | | | | * src/process.c (add_non_keyboard_read_fd): Make this a public function. (add_process_read_fd): Fold old, static add_non_keyboard_read_fd guts into here. * src/xsmfns.c (ice_conn_watch_CB): Call add_non_keyboard_read_fd (bug#43834).
* | Fix vertical cursor motion across tall text or small imagesEli Zaretskii2021-05-131-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'line-move-partial' should in general leave it to the display engine to scroll or recenter the window due to vertical motion of the cursor. The only purpose of this function is to produce vscroll suitable for scrolling across large (relatively to the window's height) images, where moving by display lines is not appropriate. * src/xdisp.c (Fdisplay__line_is_continued_p): New primitive. * lisp/simple.el (line-move-partial): Call 'display--line-is-continued-p' to decide whether to leave it to redisplay to scroll the window as appropriate. (Bug#48170)
* | Make searching for files faster under WindowsNicolás Bértolo2021-05-131-1/+11
| | | | | | | | | | | | * src/lread.c (openp): Use faccessat to check that a file exists before opening it on Windows (bug#41646). This speeds up searching for files.
* | Use an explicit line width of 1 on hollow cursors under XRadon Rosborough2021-05-131-2/+3
| | | | | | | | | | * src/xterm.c (x_draw_hollow_cursor): Specify a line width of 1 explicitly to avoid problems on some X implementations (bug#42452).
* | ; * src/image.c (xpm_format, xpm_valid_color_symbols_p): Fix last change.Eli Zaretskii2021-05-131-2/+3
| |
* | * src/image.c (xpm_image_p): Avoid another compiler warning.Eli Zaretskii2021-05-131-0/+2
| |
* | * src/image.c: Avoid compiler warnings in Cairo builds without XPM.Eli Zaretskii2021-05-131-3/+4
| |
* | Handle Bug#24526 without breaking Emacs on tiling WMs (Bug#48268)Martin Rudalics2021-05-126-6/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since tiling window managers may react allergically to resize requests immediately following MapNotify events on X, make sure that such requests are issued only when a new frame should not become visible and a size has been explicitly requested for it. * lisp/faces.el (x-create-frame-with-faces): Mark frame as 'was-invisible' if it should be initially invisible or iconified and has its size specified explicitly. * src/frame.c (make_frame): Initialize new frame's was_invisible flag. (Fframe__set_was_invisible): New internal function. * src/frame.h (struct frame): Specify size of new_size_p slot. New flag was_invisible. * src/w32fns.c (Fx_create_frame) * src/nsfns.m (Fx_create_frame) * src/xfns.c (Fx_create_frame): Set new frame's was_invisible flag. * src/xterm.c (handle_one_xevent): Call xg_frame_set_char_size after a PropertyNotify or MapNotify event only if F's was_invisible flag was set.
* | Rename comp-deferred-compilationAndrea Corallo2021-05-111-3/+4
| | | | | | | | | | | | | | | | * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Rename comp-deferred-compilation -> native-comp-deferred-compilation. * src/comp.c (maybe_defer_native_compilation, syms_of_comp): Likewise.
* | Fix assertions in nth_minibufferEli Zaretskii2021-05-111-0/+2
| | | | | | | | | | * src/minibuf.c (nth_minibuffer): Avoid assertion violation when DEPTHth minibuffer doesn't exist. (Bug#48337)
* | Base the "extraclean" Make rule on "maintainer-clean"Glenn Morris2021-05-091-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (FIND_DELETE): New, set by configure. (extraclean_dirs): Remove. (extraclean): Make it just a small variation on maintainer-clean. * admin/charsets/Makefile.in (extraclean): * admin/grammars/Makefile.in (extraclean): * admin/unidata/Makefile.in (extraclean): * leim/Makefile.in (extraclean): * lib-src/Makefile.in (extraclean): * lisp/Makefile.in (extraclean): * lwlib/Makefile.in (extraclean): * nt/Makefile.in (extraclean): * src/Makefile.in (extraclean): Remove target. * lib/Makefile.in (extraclean): Merge into maintainer-clean.
* | Prevent the selected window being a dead mini-window when switching framesAlan Mackenzie2021-05-081-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #48249 and also a situation where, with recursive minibuffers enabled and minibuffer-follows-selected-frame t, switching frames when a minibuffer was open would leave the mini-window selected on the old frame. * lisp/window.el (record-window-buffer): Add extra parameter DO-MINIBUF, and amend the code such that minibuffers only get processed when that parameter is non-nil. * src/minibuf.c (zip_minibuffer_stacks, read_minibuf): Call Qrecord_window_buffer with the new argument set to Qt. (move_minibuffers_onto_frame): Set the selected window on the old frame when this would otherwise remain the mini-window.
* | Rename comp-eln-load-path → native-comp-eln-load-pathAndrea Corallo2021-05-062-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | * src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path → native-comp-eln-load-path. * src/lread.c (maybe_swap_for_eln): Likewise. * lisp/startup.el (native-comp-eln-load-path) (normal-top-level): Likewise. * lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final) (comp-eln-load-path-eff, comp-trampoline-compile) (comp-clean-up-stale-eln, comp-run-async-workers) (comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.
* | Rename comp-warning-on-missing-sourceAndrea Corallo2021-05-062-2/+4
| | | | | | | | | | | | | | | | | | * src/lread.c (maybe_swap_for_eln): Rename comp-warning-on-missing-source → native-comp-warning-on-missing-source. * src/comp.c (syms_of_comp): Likewise. * lisp/emacs-lisp/comp.el (native-comp-warning-on-missing-source): Likewise.
* | Rename comp-native-driver-options → native-comp-driver-optionsAndrea Corallo2021-05-061-2/+2
| | | | | | | | | | | | | | | | | | * src/comp.c (add_driver_options, syms_of_comp): Rename comp-native-driver-options → native-comp-driver-options. * lisp/emacs-lisp/comp.el (native-comp-driver-options) (comp-ctxt, comp-spill-lap-function, comp-final) (comp-run-async-workers): Likewise. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
* | Rename comp-debug -> native-comp-debugAndrea Corallo2021-05-061-2/+2
| | | | | | | | | | | | | | | | | | * src/comp.c (emit_ctxt_code, syms_of_comp): Rename comp-debug -> native-comp-debug. * lisp/emacs-lisp/comp.el (native-comp-debug, comp-ctxt) (comp-spill-lap-function, comp-run-async-workers): Likewise. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise. * test/src/comp-tests.el (comp-tests-bootstrap): Likewise.
* | Rename comp-speed -> native-comp-speedAndrea Corallo2021-05-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename comp-speed -> native-comp-speed. * lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func, comp-spill-lap-function, comp-trampoline-compile, comp-run-async-workers): Likewise. * src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise. * test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1) (comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.
* | ; * src/doc.c (syms_of_doc): Fix last change.Eli Zaretskii2021-05-061-7/+7
| |
* | Improve formatting in text-quoting-style docstringStefan Kangas2021-05-061-11/+13
| | | | | | | | | | * src/doc.c (syms_of_doc) <text-quoting-style>: Doc fix; improve formatting for readability.
* | Fix wrong handling of minibuffers when frames get iconified/made invisibleAlan Mackenzie2021-05-062-58/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should fix bug #47766. * lisp/window.el (window-deletable-p): Add a quote where it was missing from minibuffer-follows-selected-frame. * src/frame.c (check_minibuf_window): Delete the function. (delete_frame): In place of calling check_minibuf_window, call move_minibuffers_onto_frame, possibly to move minibuffers onto the new current frame. (Fmake_frame_invisible, Ficonify_frame): Remove calls to check_minibuf_window. * src/minibuf.c (Factive_minibuffer_window): Search the frames for the active minibuffer rather than just assuming minibuf_window has been correctly updated.
* | Rename feature `nativecomp' into `native-compile'Andrea Corallo2021-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/comp-tests.el : Rename feature `nativecomp' into `native-compile'. * test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Likewise. * src/comp.c (syms_of_comp): Likewise. * lisp/startup.el (normal-top-level): Likewise. * lisp/loadup.el: Likewise. * lisp/help.el (help-function-arglist): Likewise. * lisp/emacs-lisp/package.el (package--native-compile-async) (package--delete-directory): Likewise. * lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise. * lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Likewise. * lisp/emacs-lisp/advice.el (ad-add-advice): Likewise.
* | Fix setting of 'width' and 'height' frame parametersMartin Rudalics2021-05-051-3/+6
| | | | | | | | | | * src/frame.c (Fframe_parameters): Fix bogus setting of 'height' and 'width' parameters.
* | Fix two GTK3 event handling issuesMartin Rudalics2021-05-051-24/+50
| | | | | | | | | | | | | | | | | | | | * src/xterm.c (handle_one_xevent): For GTK3 PropertyNotify and MapNotify events explicitly request the stored frame sizes when the frame changes from iconified to a non-hidden state (Bug#24526). For Expose events do not change the frame's visibility or iconified state. For FocusIn events on GTK3 do not apply the fix for Bug#42655. The latter two changes are to avoid that plain invisible frames get reported as iconified.
* | Make the ELC+ELN lines line up with the other linesLars Ingebrigtsen2021-05-051-1/+1
| |
* | Fix infloop in lsp-modeEli Zaretskii2021-05-041-0/+5
| | | | | | | | | | | | | | | | * src/indent.c (line_number_display_width): Make sure the selected window's buffer is current before using display code on it: redisplay assumes that the window's buffer is current at all times. Reported by Evgeny Kurnevsky via lsp-mode's issue 1621, https://github.com/emacs-lsp/lsp-mode/issues/1621.
* | Merge from origin/emacs-27Glenn Morris2021-05-041-3/+6
|\ \ | |/ | | | | | | | | | | 101a049f55 Improve doc string of 'tab-width'. 43c154404e * lisp/emacs-lisp/elp.el: Doc fixes. 1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes. 6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
| * Improve doc string of 'tab-width'.Eli Zaretskii2021-04-301-3/+6
| | | | | | | | | | * src/buffer.c (syms_of_buffer) <tab-width>: Clarify doc string. (Bug#48058)
| * Fix crash when using menus and tramp on NSAlan Third2021-04-041-2/+16
| | | | | | | | | | | | | | | | ; Fixes bug#24472, bug#37557 and bug#37922. * src/nsterm.m (ns_select): Don't drain outerpool in this function. (cherry picked from commit f14869cd70e61b1908ec88a5e3d4bf21c7d538a0)
* | Remove as of recently unused GDK macroBasil L. Contovounesios2021-05-041-2/+0
| | | | | | | | | | | | | | | | | | Its only use was removed in the recent change of 2021-04-27 "Major rewrite of adjust_frame_size", announced in the following thread: https://lists.gnu.org/r/emacs-devel/2021-04/msg01162.html * src/gtkutil.c [USE_GTK && !HAVE_GTK3] (gdk_window_get_geometry): Remove unused macro to pacify -Wunused-macros build warning.
* | Fix a problem with x_set_tab_bar_lines (Bug#46827)Martin Rudalics2021-05-042-8/+13
| | | | | | | | | | | | | | | | | | * src/xfns.c (x_set_tab_bar_lines): Call x_change_tab_bar_height only if the number of tab bar lines changed from or to zero (Bug#46827). * src/xterm.c (x_make_frame_visible): Make frame_size_history update less noisy by doing it only if the frame wasn't visible before.
* | Fix unquoting of file names in subprocesses (Bug#48177)Michael Albinus2021-05-031-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (file-name-non-special): Improve handling of inhibit-file-name-handlers. * src/callproc.c (Fcall_process, call_process): Unquote infile, error_file and output_file. (Bug#48177) * test/lisp/files-tests.el (files-tests-file-name-non-special--subprocess) (files-tests-file-name-non-special-file-name-all-completions) (files-tests-file-name-non-special-file-name-completion): Adapt tests.
* | Fix incorrect resizing behaviour on macOS (bug#48157, bug#48162)Alan Third2021-05-031-14/+22
| | | | | | | | | | | | | | * src/nsterm.m ([EmacsView viewDidResize:]): The drawing buffer can be resized independently of Emacs's idea of the frame size. Co-authored-by: martin rudalics <rudalics@gmx.at>
* | Add two changes announced but not included in previous commitMartin Rudalics2021-05-021-18/+14
| | | | | | | | | | | | * src/frame.c (adjust_frame_size): Remove extra inhibit_horizontal/_vertical checks. Improve the implied resize check when INHIBIT equals 2.
* | Fix crash when resizing GNUstep buildsAlan Third2021-05-022-9/+8
| | | | | | | | | | | | | | | | | | The toolkit can send far too many resize notifications, so be more careful when we take action after receiving one. * src/nsfns.m (ns_set_tool_bar_lines): Remove unneeded NSTRACE. * src/nsterm.m ([EmacsView viewDidResize:]): Don't report resizes to Emacs when the same change has already been reported and delayed.