summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* Disable xterm selection operators in sttermLars Ingebrigtsen2021-08-251-2/+1
| | | | | * lisp/term/st.el (xterm-st-extra-capabilities): st doesn't support the xterm selection things (bug#50192).
* Add missing :version tags to new facesEli Zaretskii2021-08-251-8/+16
| | | | | | | * lisp/term.el (term-color-bright-black, term-color-bright-red) (term-color-bright-green, term-color-bright-yellow) (term-color-bright-blue, term-color-bright-magenta) (term-color-bright-cyan, term-color-bright-white): Add :version.
* Add support for "bright" ANSI colors in term-modeJim Porter2021-08-251-31/+102
| | | | | | | | | | | | | * list/term.el (ansi-term-color-vector): Add new faces. (term-color-white): Tweak colors. (term-color-bright-black, term-color-bright-red, term-color-bright-green) (term-color-bright-yellow, term-color-bright-blue) (term-color-bright-magenta, term-color-bright-cyan) (term-color-bright-white): New faces. (term--maybe-brighten-color): New function. (term-handle-colors-array): Handle bright colors. * test/lisp/term-tests.el (term-colors, term-colors-bold-is-bright): New functions.
* Add support for "bright" ANSI colors in ansi-colorJim Porter2021-08-251-27/+89
| | | | | | | | | | | | | * lisp/ansi-color.el (ansi-bright-color-names-vector): New defcustom. (ansi-color-bold-is-bright): New defcustom. (ansi-color--find-face): Sort ANSI codes and check 'ansi-color-bold-is-bright'. (ansi-color-apply-sequence): Support bright ANSI colors. (ansi-color--fill-color-map): New function. (ansi-color-make-color-map): Add bright ANSI colors. (ansi-color-get-face-1): Add BRIGHT parameter. * test/lisp/ansi-color-tests.el (ansi-color-apply-on-region-bold-is-bright-test): New function.
* tabulated-list-print delete excess linesShitikanth Kashyap2021-08-251-0/+2
| | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Ensure that we delete remaining lines if the list has gotten shorter (bug#50194). Copyright-paperwork-exempt: yes
* Add support for OSC escape codes in comintAugusto Stoffel2021-08-252-0/+86
| | | | | | | | | | * doc/emacs/misc.texi (Shell Mode): Document it. * lisp/comint.el (comint-osc-handlers, comint-osc--marker): New variables. (comint-osc-process-output): New function. (comint-osc-hyperlink-map): New map. (comint-osc-hyperlink-handler): New function.
* Fix up previous conf-mode/tex-mode redirection hacksLars Ingebrigtsen2021-08-252-6/+10
| | | | | | | * lisp/textmodes/conf-mode.el (conf-mode): * lisp/textmodes/tex-mode.el (tex--redirect-to-submode): The previous hack to these redirections would disable all local variables. Try to work around this a bit more.
* Some precisements in Tramp's connection type handlingMichael Albinus2021-08-244-13/+24
| | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Precise connection type handling. * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-sh-handle-make-process): * lisp/net/tramp.el (tramp-handle-make-process): Fix :connection-type handling. (tramp-action-show-and-confirm-message): Pacify byte compiler. * lisp/net/tramp-compat.el (tramp-compat-ignore-error): New defmacro. * test/lisp/net/tramp-tests.el (tramp-test29-start-file-process) (tramp-test30-make-process): Extend tests.
* * lisp/mouse.el (context-menu-mode-map): Bind [menu] to context-menu-open.Ergus2021-08-241-0/+1
| | | | https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg01004.html
* * lisp/mouse.el (context-menu-buffers): New function (bug#50067).Juri Linkov2021-08-241-0/+12
| | | | (context-menu-functions): Add context-menu-buffers to the choice list.
* ; * lisp/repeat.el (repeat-echo-message): Use `string-search`.Mattias Engdegård2021-08-241-1/+1
|
* Fix to clear echo-area after repeat-exit-timeout.Gabriel do Nascimento Ribeiro2021-08-241-1/+1
| | | | | * lisp/repeat.el (repeat-echo-message): Use 'string-match-p' to handle cases where echo-area contains other messages (bug#50176).
* ; * lisp/time-stamp.el: Improve doc strings.Stephen Gildea2021-08-231-71/+97
| | | | Thanks to VEB for her help with the clarity of the documentation.
* ; migrate MH-E to mail-parse libraryStephen Gildea2021-08-234-12/+12
| | | | | | | | | | | | | Move MH-E from low-level libraries to the high-level mail-parse library. * lisp/mh-e/mh-comp.el: replace ietf-drums-parse-address with mail-header-parse-address. * lisp/mh-e/mh-junk.el: replace ietf-drums-parse-address with mail-header-parse-address; remove mh-funcall-if-exists wrapper. * lisp/mh-e/mh-xface.el: replace ietf-drums-parse-address with mail-header-parse-address; remove fboundp wrapper. * lisp/mh-e/mh-mime.el: replace rfc2047-decode-region with mail-decode-encoded-word-region.
* Document 'jit-lock-bounds'Eli Zaretskii2021-08-231-2/+8
| | | | | | * doc/lispref/modes.texi (Other Font Lock Variables): * lisp/jit-lock.el (jit-lock-functions, jit-lock-register): Document the return value of the fontification functions.
* Add example of advanced user-defined Rx form to manualMattias Engdegård2021-08-231-1/+2
| | | | | | | * doc/lispref/searching.texi (Extending Rx): Add example illustrating how to define a user-defined Rx form that performs computation, from a discussion with Michael Herdeegen (bug#50136). * lisp/emacs-lisp/rx.el (rx): Clarify evaluation time for `eval`.
* * lisp/mouse.el (context-menu-open): New command bound to [S-f10].Juri Linkov2021-08-231-0/+9
| | | | | | | | | | | * doc/emacs/frames.texi (Menu Mouse Clicks): Mention S-F10 to pop up the context menu. * src/callint.c (Fcall_interactively): Use inhibit_mouse_event_check for the case 'e'. (inhibit-mouse-event-check): New variable. https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00733.html
* Fix doc strings in recent changes.Eli Zaretskii2021-08-231-18/+18
| | | | | | | * lisp/progmodes/cperl-mode.el (cperl-commentify) (cperl-here-doc-functions, cperl-is-here-doc-p) (cperl-find-pods-heres): Fix wording, style, and punctuation of doc strings.
* ; cperl-mode: bugfix / rework fontification of here-docsHarald Jörg2021-08-231-144/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-mode): Use `cperl-font-lock-syntactic-face-function'. (cperl-commentify): Add a docstring, eliminate unused formal parameter `noface'. (cperl-is-here-doc-p): New function to detect whether "<<" starts a here-document, factored out from `cperl-find-pods-heres'. (cperl-here-doc-functions): New variable: List of functions which allow here-documents as parameters, for use in `cperl-is-here-doc-p'. (cperl-process-here-doc): New function, factored out from `cperl-find-pods-heres'. Fixed to keep correct fontification after non-interactive (elisp) changes (Bug#14343, Bug#28962). (cperl-find-pods-heres): Extend the doc-string to describe all parameters. Don't remove text properties in recursive calls on the same line. Call `cperl-process-here-doc' when appropriate. (cperl-font-lock-syntactic-face-function): New function to highlight c-style comments as here-documents (adapted from perl-mode.el). * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-identify-heredoc): New test for the new function `cperl-is-here-doc-p'. (cperl-test-identify-no-heredoc): New test for the new function `cperl-is-here-doc-p', testing constructs which start with "<<" but are no here-documents. (cperl-test-here-doc-missing-end): New test to verify correct detection of a missing here-document delimiter. (cperl-test-bug-14343): New test to verify that inserting text into a here-document with elisp does not break fontification.
* Add new variable 'kill-buffer/delete-auto-save-files'Lars Ingebrigtsen2021-08-232-9/+2
| | | | | | | | | | | | | | | * doc/emacs/files.texi (Auto Save Files): Document it. * lisp/cus-start.el (standard): Add customize form. * lisp/files.el (delete-auto-save-files): Move definition to C (since it's used in the C layer). * src/buffer.c (Fkill_buffer): Use the new variable (and remove the old code that apparently didn't trigger for kill-buffer/delete-auto-save-files. (syms_of_buffer): Add new variable kill-buffer-delete-auto-save-files and move definition of delete-auto-save-files here (bug#21612).
* Complete implementation of `copy-directory-create-symlink' in TrampMichael Albinus2021-08-232-149/+173
| | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Fix the case NEWNAME is a directory name with a trailing slash. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory): Implement `copy-directory-create-symlink'. (Bug#10897) * test/lisp/net/tramp-tests.el (tramp--test-ignore-make-symbolic-link-error): Move up. (tramp-test15-copy-directory): Extend test.
* * lisp/mouse.el (context-menu-toolbar): New function.Juri Linkov2021-08-231-1/+13
| | | | | | | (context-menu-functions): Add context-menu-toolbar to choice. (context-menu-region): Bind "Paste" to mouse-yank-at-click instead of mouse-yank-primary. https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00735.html
* Improve byte-compile-warnings doc stringLars Ingebrigtsen2021-08-231-2/+3
| | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Mention 'byte-compile-docstring-max-column'.
* Do command mode markup in xwidget.elLars Ingebrigtsen2021-08-231-33/+35
|
* Make xwidget-webkit-enable-plugins a defcustomLars Ingebrigtsen2021-08-231-2/+4
| | | | | * lisp/xwidget.el (xwidget-webkit-enable-plugins): Make into defcustom.
* Implement `copy-directory-create-symlink' for remote filesMichael Albinus2021-08-221-29/+36
| | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-copy-directory): Implement `copy-directory-create-symlink'. (Bug#10897) * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory): Extend test.
* Double check completions-group customization variable in IcompleteJoão Távora2021-08-221-1/+2
| | | | | | bug#48545 * lisp/icomplete.el (icomplete--augment): Double check completions-group.
* Don't mess up grouping in completion-all-sorted-completionsJoão Távora2021-08-221-6/+15
| | | | | | | | | | | | | | | | | | | | | The default sorting order will mess up the naturally grouped order of the candidates in the table that specified the group-function. As seen in xref.el when (setq xref-show-definitions-function 'xref-show-definitions-completing-read) (setq completions-group t) M-x fido-mode Also partially seen with C-x 8 RET (M-x insert-char) with (setq read-char-by-name-sort 'code) bug#48545 * lisp/minibuffer.el (completion-all-sorted-completions): Don't use default sort if there's a group-function in the table.
* Revert "Fix dired switch (that contain quotes and spaces) parsing"Lars Ingebrigtsen2021-08-221-1/+1
| | | | | | | This reverts commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd. The dired switches are documented to not follow shell syntax, but instead uses a lisp-in-string-form kind of quoting.
* Don't echo empty string in file-name-with-extensionColin Woodbury2021-08-221-1/+1
| | | | | * lisp/files.el (file-name-with-extension): Avoid echoing a filename string known to be empty (bug#50149).
* Some adaptions for Tramp's security key detection.Michael Albinus2021-08-221-4/+16
| | | | | | * lisp/net/tramp.el (tramp-security-key-timeout-regexp): New defcustom. (tramp-action-show-and-confirm-message): Don't use timeout, check for the timeout message of the ssh command.
* * lisp/mouse.el (context-menu-mode-map): New variable.Ergus2021-08-221-30/+10
| | | | | | (context-menu--saved-bindings, context-menu--bind-mouse) (context-menu--restore-bindings): Remove. (context-menu-mode): Don't use removed functions.
* Don't show menu titles with the text property 'hide' (bug#50067)Juri Linkov2021-08-221-1/+1
| | | | | | | | * lisp/mouse.el (context-menu-map): Add menu title "Context Menu" propertized with the text property 'hide'. * src/menu.c (x_popup_menu_1): Don't show the title with the non-nil text property 'hide' on GTK and NS.
* ; * lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions): Doc fix.Eli Zaretskii2021-08-221-3/+3
|
* Improve documentation of 'set-keyboard-coding-system'Eli Zaretskii2021-08-221-2/+5
| | | | | | | | * doc/lispref/nonascii.texi (Terminal I/O Encoding): * doc/emacs/mule.texi (Terminal Coding): * lisp/international/mule.el (set-keyboard-coding-system): Document that 'set-keyboard-coding-system' has no effect on modern MS-Windows systems. (Bug#15289)
* mh-x-image-url-sane-p: accept "https" URLsStephen Gildea2021-08-211-4/+6
| | | | | * lisp/mh-e/mh-xface.el (mh-x-image-url-sane-p): Accept https URLs. * test/lisp/mh-e/mh-xface.el: New file, to test mh-x-image-url-sane-p.
* ; MH-E doc: SourceForge repo is no longer currentStephen Gildea2021-08-211-2/+3
| | | | | | * doc/misc/mh-e.texi, lisp/mh-e/mh-e.el: Update references to SourceForge with current URLs and a note that MH-E development no longer occurs in that repository.
* ; Load xref when needed (not all functions are autoloaded)Mattias Engdegård2021-08-211-0/+1
|
* Clarify cl-defstruct doc string and manual entry somewhatLars Ingebrigtsen2021-08-211-10/+15
| | | | | | | | | * doc/misc/cl.texi (Structures): Rename the slot "name" in the examples to "first-name", since we're talking about the names of slots a lot here, and having a slot with the name "name" makes the examples somewhat confusing. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Clarify certain things about slots (bug#14278).
* ; * lisp/dired.el (dired-jump): Doc fix.Eli Zaretskii2021-08-211-4/+3
|
* Fix perldb doc stringLars Ingebrigtsen2021-08-211-3/+8
| | | | * lisp/progmodes/gud.el (perldb): Fix doc string (bug#14588).
* Clarify dired-jump doc stringLars Ingebrigtsen2021-08-211-1/+8
| | | | | * lisp/dired.el (dired-jump): Make the doc string say what happens in buffers not visiting files (bug#14733).
* Use overlay arrow to indicate current *xref* selectionMattias Engdegård2021-08-211-0/+10
| | | | | | | * lisp/progmodes/xref.el (xref--set-arrow): New function. (xref-show-location-at-point, xref-goto-xref) (xref--next-error-function): Call it. (xref--show-common-initialize): Remove arrow.
* Add "Find References" to context menu (bug#50067)Mattias Engdegård2021-08-212-2/+24
| | | | | | | | | The new entry appears next to "Find Definition" and like it only appears when the context menu was invoked on an identifier. * lisp/progmodes/prog-mode.el (prog-context-menu): New menu entry. * lisp/progmodes/xref.el (xref-find-references-at-mouse): New function, analogous to `xref-find-definitions-at-mouse`.
* Indicate progress while searching for references in xrefMattias Engdegård2021-08-211-1/+5
| | | | | | * lisp/progmodes/xref.el (xref-backend-references): Add messages to show the user that something is happening instead of silently freezing during the frequently long synchronous searches for references.
* Re-type the :location slot in `xref-match-item` to `xref-location`Mattias Engdegård2021-08-211-1/+1
| | | | | | | * lisp/progmodes/xref.el (xref-match-item): Change type for :location from `xref-file-location`, which was likely a mistake, to `xref-location`. This allows `xref-make-match` to take arguments of any subtype of `xref-location` (bug#50067).
* Add xref operations to context menu unconditionallyMattias Engdegård2021-08-211-15/+15
| | | | | | * lisp/progmodes/prog-mode.el (prog-context-menu): Add xref operations to the context menu even if xref hasn't been loaded yet; the functions involved are autoloaded (bug#50067).
* CC Mode: Move a macro to before its first use in a file.Alan Mackenzie2021-08-211-8/+8
| | | | | * lisp/progmodes/cc-defs.el (c-benign-error): Move earlier in the file for the benefit of c-tnt-chng-cleanup.
* Improve doc string of 'M-.'Eli Zaretskii2021-08-211-1/+3
| | | | | * lisp/progmodes/xref.el (xref-find-definitions): Mention 'M-,' in the doc string.
* ; * lisp/simple.el (execute-extended-command): Fix comment wording.Eli Zaretskii2021-08-211-2/+2
|