summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Speed up mail-extr in some configurationsKevin Brubeck Unhammer2022-06-211-2/+0
| | | | | | * lisp/mail/mail-extr.el (mail-extract-address-components): (mail-extract-address-components): The buffer is already in fundamental-mode, so don't re-enable it (bug#56113).
* Rename recently-introduced dired-omit-line-regexp user optionLars Ingebrigtsen2022-06-211-4/+4
| | | | | * lisp/dired-x.el (dired-omit-lines, dired-omit-mode): Rename dired-omit-line-regexp to dired-omit-lines for consistency.
* Move selection delayed message to a better locationPo Lu2022-06-211-3/+2
| | | | | | | | | * lisp/term/x-win.el (gui-backend-get-selection): Remove `with-delayed-message' here. * src/xselect.c (x_display_selection_waiting_message) (x_cancel_atimer): New functions. (x_get_foreign_selection): Add an atimer that displays the message after a while.
* * lisp/edmacro.el: Add missing (require 'seq).Sean Whitton2022-06-201-0/+1
|
* term-set-escape-char: Remove old binding from term-raw-escape-mapSean Whitton2022-06-201-3/+2
| | | | | * lisp/term.el (term-set-escape-char): When replacing the escape char, remove the binding of the old escape char in term-raw-escape-map.
* Fix potential (goto-char nil) in byte-compile-warning-prefixAlan Mackenzie2022-06-201-2/+1
| | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-prefix): Replace a wrong 'or' form involving OFFSET with simply OFFSET. This prevents OFFSET from possibly being nil in the first branch of the containing `if' form.
* Issue a message if getting a selection takes a long timeLars Ingebrigtsen2022-06-201-1/+3
| | | | | | * lisp/term/x-win.el (gui-backend-get-selection): If getting the selection takes a long time, issue a message after one second (bug#46935).
* ; Fix recent change of documentation of face-remapEli Zaretskii2022-06-201-1/+1
| | | | | | * lisp/face-remap.el (text-scale-adjust): * doc/emacs/display.texi (Text Scale): Fix wording of recent changes to documentation.
* ; * lisp/help-mode.el (help-xref-button): Doc fix.Eli Zaretskii2022-06-201-2/+2
|
* ; * lisp/image.el (find-image): Fix typos.Eli Zaretskii2022-06-201-4/+4
|
* Prefer defvar-keymap in hi-lock.elStefan Kangas2022-06-201-17/+16
| | | | | * lisp/hi-lock.el: Prefer keymap-set in documentation. (hi-lock-map): Prefer defvar-keymap.
* Fix problems with Tramp FTP and URL handler modeMichael Albinus2022-06-203-28/+41
| | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-run-real-handler): Add ;;;###tramp-autoload cookie. * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Prevent invocation of `tramp-archive-file-name-handler'. (Bug#56078) * lisp/url/url-tramp.el (url-tramp-convert-url-to-tramp) (url-tramp-convert-tramp-to-url): Make them more robust.
* Make images found through `find-image' be handled like `create-image'David Ponce2022-06-201-18/+42
| | | | | * lisp/image.el (find-image): Use `create-image' so that we get auto-scaling of images (bug#40978).
* whitespace: Redraw if indentation or line length changesRichard Hansen2022-06-201-10/+28
| | | | | | | | | | | | * lisp/whitespace.el (whitespace-color-on): Convert the indentation matcher from a static regular expression to a function so that changes to `indent-tabs-mode' and `tab-width' are picked up the next time `font-lock-flush' runs. (whitespace--indentation-matcher): The new function matcher. (whitespace--variable-watcher): New variable watcher that calls `font-lock-flush' if `whitespace-mode' is enabled for the buffer. (whitespace--watched-vars): List of variables to watch. (whitespace-unload-function): Un-watch the variables. (bug#56103).
* xref-goto-xref: Set input focus in addition to selecting windowMiha Rihtaršič2022-06-201-3/+9
| | | | | * lisp/progmodes/xref.el (xref--show-location): Set input focus in addition to selecting displayed window (Bug#55983).
* Allow removing quotes around links in *Help* buffersLars Ingebrigtsen2022-06-201-5/+25
| | | | | | * doc/emacs/help.texi (Help Mode): Document it. * lisp/help-mode.el (help-clean-buttons): New user option (help-xref-button): Use it.
* Tweak quoting in help-fns--compiler-macroLars Ingebrigtsen2022-06-201-1/+1
| | | | | * lisp/help-fns.el (help-fns--compiler-macro): Fix quotes in help text.
* Fix bytecompiler infloop compiling infloopsPip Cet2022-06-201-3/+3
| | | | | * lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Don't apply optimization if we can't change anything (bug#46906).
* Let `dired-omit-mode' match lines, as well as file namesDrew Adams2022-06-202-70/+128
| | | | | | | | * lisp/dired-aux.el (dired-do-kill-lines): Adjust to use it. * lisp/dired-x.el (dired-omit-line-regexp): New user option (bug#46882). (dired-omit-mode, dired-omit-expunge): Use the new user option.
* Update font scaling documentation to not talk about "face height"Stefan Kangas2022-06-205-24/+32
| | | | | | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-init-buffer): * lisp/mwheel.el (mouse-wheel-scroll-amount): (mouse-wheel-text-scale): * lisp/faces.el (set-face-attribute): * lisp/face-remap.el (text-scale-mode-step): (text-scale-increase): (text-scale-adjust): * lisp/cus-face.el (custom-face-attributes): * doc/emacs/frames.texi (Mouse Commands): * doc/emacs/display.texi (Text Scale): Talk about font sized instead of "face height" (bug#46853).
* Allow appending to the kill ring with mouse selectionsLars Ingebrigtsen2022-06-202-3/+14
| | | | | | | | | * lisp/bindings.el (ignore-preserving-kill-region): New function. (global-map): Use it. * lisp/mouse.el (mouse-set-region, mouse-drag-region) (mouse-drag-track): Allow appending to kill ring with mouse selections (bug#32747).
* Fix last change in tramp-adb-handle-make-processMichael Albinus2022-06-191-63/+65
| | | | | * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): Fix process buffer management.
* Fix starting eshell with missing/invalid modules definedStefan Kangas2022-06-191-1/+5
| | | | | * lisp/eshell/esh-mode.el (eshell-mode): Warn instead of failing to start when 'eshell-modules-list' has invalid entries. (Bug#54976)
* Make describe-repeat-maps fontify key bindingsLars Ingebrigtsen2022-06-191-9/+12
| | | | | * lisp/repeat.el (describe-repeat-maps): Fontify key bindings as key bindings.
* Make M-S-x output better in mode that have bindings for `undefined'Lars Ingebrigtsen2022-06-191-2/+11
| | | | | | | * lisp/simple.el (command-completion-using-modes-p): Speed up case when there's no command modes. (execute-extended-command-for-buffer): Make M-S-x output better (bug#46665).
* Recognize \' as a quoted quote in MySQLLars Ingebrigtsen2022-06-191-22/+27
| | | | | * lisp/progmodes/sql.el (sql-mode): Recognize \' as a quoted quote in MySQL (bug#38302).
* Don't handle reverseVideo X resource speciallyLars Ingebrigtsen2022-06-191-8/+0
| | | | | * lisp/term/x-win.el (window-system-initialization): Don't handle reverseVideo specially (bug#32921).
* Small fix in font-lock-extend-region-multilineSébastien Miquel2022-06-191-6/+11
| | | | | | * lisp/font-lock.el (font-lock-extend-region-multiline): Do not extend the region if `font-lock-multiline' starts at `font-lock-end' (bug#46558).
* Add rudimentary font-locking to edmacro-modeStefan Kangas2022-06-191-1/+34
| | | | | | | * lisp/edmacro.el (edmacro-label): New face. (edmacro-mode-font-lock-keywords): New variable. (edit-kbd-macro): Use font-lock in 'edmacro-mode'. Minor improvement to command substitution.
* * lisp/obsolete/eieio-compat.el: Add missing Obsolete-since line.Stefan Kangas2022-06-191-0/+1
|
* Prefer defvar-keymap in kmacro.elStefan Kangas2022-06-191-63/+57
| | | | | * lisp/kmacro.el (kmacro-keymap, kmacro-step-edit-map): Prefer defvar-keymap.
* Fix edebug parsing of .,Lars Ingebrigtsen2022-06-191-1/+1
| | | | | * lisp/emacs-lisp/edebug.el (edebug-next-token-class): Parse ., correctly (bug#37653).
* Tune when to show "Quick Help" in Ediff mode-lineMichael Heerdegen2022-06-191-3/+1
| | | | | | | * lisp/vc/ediff-wind.el (ediff-refresh-mode-lines): Decide whether to display "Quick Help" in the mode-line based on the value of `ediff-use-long-help-message' instead of checking `ediff-window-setup-function' (Bug#12840).
* Make checkdoc-defun-info parsing slightly less wrongLars Ingebrigtsen2022-06-191-5/+12
| | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): Disregard `interactive' in nested parts of the defun (bug#56052).
* Add mechanism for gradually phasing in new byte compilation warningsLars Ingebrigtsen2022-06-192-9/+35
| | | | | | | | | | | | * lisp/Makefile.in (BYTE_COMPILE_FLAGS): Enable all byte compilation warnings. * lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types): Add docstrings-non-ascii-quotes and document new semantics for `all' and t. (byte-compile--emacs-build-warning-types): New constant. (byte-compile-warning-enabled-p): Implement the new semantics. (byte-compile-docstring-style-warn): Reinstate the Unicode quote warning.
* Merge from origin/emacs-28Stefan Kangas2022-06-191-1/+1
|\ | | | | | | 422f958030 Fix invalid defcustom :group when :predicate is used
| * Fix invalid defcustom :group when :predicate is usedRichard Hansen2022-06-181-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix invalid `:group' argument for the `-modes' defcustom that is created when `:predicate' is used (bug#56049).
* | Fix XDND from Firefox againPo Lu2022-06-191-36/+39
| | | | | | | | | | | | | | * lisp/x-dnd.el (x-dnd-handle-xdnd): Prevent nil from appearing in format 32 list. (x-dnd-handle-motif): Send reply if the user quit out of the drop handler as well.
* | Prefer defvar-keymap in edmacro.elStefan Kangas2022-06-181-5/+3
| | | | | | | | * lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap.
* | Respect no-face argument in literal key substitutionsStefan Kangas2022-06-181-3/+4
| | | | | | | | | | | | | | | | | | * lisp/help.el (substitute-command-keys): Respect 'no-face' argument also in literal key substitutions. * test/lisp/help-tests.el (help-tests-substitute-key-bindings/help-key-binding-face): Rename from help-tests-substitute-key-bindings/face-help-key-binding. (help-tests-substitute-key-bindings/help-key-binding-no-face): New test.
* | Fix last tty-select-active-regions changeBasil L. Contovounesios2022-06-181-0/+2
| | | | | | | | | | | | | | | | | | * lisp/frame.el (tty-select-active-regions): Pacify warning about missing defcustom :group by specifying the same group as select-active-regions, as well as the frames group. * src/keyboard.c (command_loop_1, syms_of_keyboard): Rename last occurrences of xterm-select-active-regions to tty-select-active-regions (bug#55883).
* | CC Mode: Add accurate handling for backslash in C line and block commentsAlan Mackenzie2022-06-183-4/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to handle the idiosyncratic meaning of backslash in comments in the C and C++ standards. * lisp/progmodes/cc-engine.el: Correct a spelling error. * lisp/progmodes/cc-mode.el (c-before-change-fix-comment-escapes) (c-after-change-fix-comment-escapes): New functions. * lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add c-before-change-fix-comment-escapes to the C/Objc and C++ values. (c-before-font-lock-functions): Add c-after-change-fix-comment-escapes to the C/Objc and C++ values.
* | Fix test failures due to 'xterm-select-active-regions'Eli Zaretskii2022-06-182-11/+9
| | | | | | | | | | | | * lisp/frame.el (tty-select-active-regions): Rename from xterm-select-active-regions and move here from xterm.c. (display-selections-p): Adjust to the above. (Bug#55883)
* | More aggressive bytecode split between top-level forms (bug#55972)Mattias Engdegård2022-06-181-5/+4
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-keep-pending): Allow bytecode split between all kinds of top-level forms, not just those with chunk handlers, to prevent individual chunks from growing too large. In particular this helps compilation of package-quickstart.el.
* | Fix checkdoc--fix-y-or-n-p queryLars Ingebrigtsen2022-06-181-1/+1
| | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc--fix-y-or-n-p): Fix the query to match what's done (bug#56053).
* | Filter out NS non-key events from `where-is-internal'Lars Ingebrigtsen2022-06-182-14/+18
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/keymaps.texi (Scanning Keymaps): Document it. * lisp/keymap.el (make-non-key-event): New function. * lisp/term/common-win.el (x-setup-function-keys): Mark ns events as not being keys (bug#55940). * src/keymap.c (Fwhere_is_internal): Filter out key sequences that are marked as being non-keys.
* | Allow pretty-printing results from `C-x C-e' in edebugLars Ingebrigtsen2022-06-181-12/+16
| | | | | | | | | | | | | | * doc/lispref/edebug.texi (Edebug Eval): Document it. * lisp/emacs-lisp/edebug.el (edebug-eval-expression): Allow displaying the full value in a different buffer.
* | CC Mode: Fix infinite loop in noise macro near end of bufferAlan Mackenzie2022-06-182-10/+10
| | | | | | | | | | | | | | | | | | This fixes bug #55771. Also fix an inaccuracy in c-defun-name-1 with the same cause. * lisp/progmodes/cc-cmds.el (c-defun-name-1) * lisp/progmodes/cc-engine.el (c-forward-noise-clause): Check the return value of c-forward-token-2 and act upon it when not zero.
* | Support `select-active-regions' with xtermDuncan Findlay2022-06-182-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows Emacs to save the active region to the user's primary selection on supported terminals. The behavior follows the existing `select-active-regions' variable and requires `xterm-select-active-regions' to be non-nil. * src/keyboard.c (command_loop_1): * lisp/frame.el (display-selections-p): On text terminals, check terminal parameter `xterm--set-selections' and variable `xterm-select-active-regions' when deciding whether to update primary selection. (bug#55883) * lisp/term/xterm.el (xterm-select-active-regions): New defcustom.
* | Avoid "control-control-KEY" (bug#55738)Mattias Engdegård2022-06-183-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Constructs such as ?\C-^@ or ?\C-\C-m literally apply a Control modifier twice which doesn't make sense at all. What is really meant is a C0 base character with the Control modifier bit set. This change is only stylistic in nature. * lisp/edmacro.el (edmacro-format-keys): * lisp/keymap.el (key-parse): * lisp/subr.el (event-modifiers, event-basic-type): * test/lisp/subr-tests.el (subr-test-kbd): Use \0 and \r instead of ^@ and \C-m to represent NUL and RET when combined with other modifiers.