summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup whitespace and comments in dired librariesJonas Bernoulli2021-06-303-104/+101
| | | | | | * lisp/dired-aux.el: Cleanup whitespace and comments. * lisp/dired-x.el: Cleanup whitespace and comments. * lisp/dired.el: Cleanup whitespace and comments.
* Add new function lm-maintainers (bug#48592)Jonas Bernoulli2021-06-301-7/+15
| | | | | | | | * doc/lispref/tips.texi (Library Headers): Improve wording. * lisp/emacs-lisp/lisp-mnt.el (lm-maintainers): New function. (lm-maintainer): Make obsolete in favor of lm-maintainer. (lm-verify): Use lm-maintainers. (lm-report-bug): Use lm-maintainers.
* * lisp/emacs-lisp/lisp-mnt.el (lm-crack-address): Right-trim name.Jonas Bernoulli2021-06-301-2/+2
| | | | | The addresses might be aligned in which case we have to trim the extra whitespace at the end of the names.
* Adjust docstring of lisp-mode (bug#49278)João Távora2021-06-301-1/+1
| | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-mode): Mention that this mode is primarily for Common Lisp.
* Add new user option to transform kill ring contentsLars Ingebrigtsen2021-06-301-32/+45
| | | | | | * doc/emacs/killing.texi (Kill Options): Document it. * lisp/simple.el (kill-new): Use it. (kill-transform-function): New user option (bug#29013).
* Make the minor mode doc strings say that they're minor modesLars Ingebrigtsen2021-06-301-3/+3
| | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Mention that this is a minor mode (bug#20462).
* Fix problem when creating an .authinfo entry with an existing machine nameLars Ingebrigtsen2021-06-301-1/+2
| | | | | | * lisp/auth-source.el (auth-source-netrc-create): Don't return the incorrect data if there's a matching host entry but the wrong user name (bug#49289).
* Add new function file-name-with-extensionColin Woodbury2021-06-302-0/+24
| | | | | | | * doc/lispref/files.texi (File Name Components): Document it. * lisp/emacs-lisp/shortdoc.el (file-name): Ditto. * lisp/files.el (file-name-with-extension): New function.
* * lisp/repeat.el (describe-repeat): New command (bug#49265).Juri Linkov2021-06-291-1/+23
|
* Sync with Tramp 2.5.1Michael Albinus2021-06-294-16/+8
| | | | | | | | | | | | | * doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.5.1". * lisp/tramp.el (tramp-handle-write-region): * lisp/tramp-adb.el (tramp-adb-handle-write-region): * lisp/tramp-sh.el (tramp-sh-handle-write-region): Call local `write-region' directly. * test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test for MS Windows.
* Merge from origin/emacs-27Glenn Morris2021-06-282-8/+28
|\ | | | | | | ef5f3d5ee7 (origin/emacs-27) C++ Mode: Handle new keywords static_cas...
| * C++ Mode: Handle new keywords static_cast, etc., wrt angle bracketsAlan Mackenzie2021-06-272-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-langs.el (c-<>-arglist-kwds): Add const_cast, dynamic_cast, reinterpret_cast and static_cast into this lang const. * lisp/progmodes/cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props) (c-clear-<-pair-props-if-match-after, c-clear->-pair-props-if-match-before) (c-forward-<>-arglist-recur): Invalidate caches with c-trunctate-lit-pos-cache. (c-forward-<>-arglist-recur): If in a matching <...> expression, the < has a syntax-table property, but the > not, remove that property.
* | * lisp/textmodes/ispell.el: Fix finding dictionaries for Enchant.Reuben Thomas2021-06-281-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (ispell-find-enchant-dictionaries): I originally copied this code from the equivalent code for Aspell. Unfortunately it was wrong for the case of Enchant: it should find only dictionaries that Enchant knows about, and not merge in `ispell-dictionary-base-alist' or add a default element, as these are dealt with in `ispell-set-spellchecker-params'. This caused a bug where the correct `-d' argument would not be added to the invocation of enchant, leading to the process not being correctly started.
* | * lisp/textmodes/ispell.el: Check process is live before interacting.Reuben Thomas2021-06-281-5/+8
| | | | | | | | | | Check that `ispell-process' is live before trying to read from or write to it. This avoids a hang if the process has died.
* | Fix bug#49229 in shell.elMichael Albinus2021-06-281-1/+2
| | | | | | | | | | * lisp/shell.el (shell): Ensure, that a remote shell is remote. (Bug#49229)
* | * lisp/files.el (hack-one-local-variable): Allow `add-function` in `eval:`Stefan Monnier2021-06-271-1/+1
| | | | | | | | Fixes: bug#49163
* | * lisp/textmodes/flyspell.el: Fix bug#49104Stefan Monnier2021-06-271-15/+8
| | | | | | | | | | | | (flyspell--prev-meta-tab-binding): Delete var. (flyspell-prog-mode): Don't set it. (flyspell-auto-correct-word): Lookup the "next" command dynamically.
* | * lisp/minibuffer.el (completion-in-region--single-word): SimplifyStefan Monnier2021-06-262-12/+6
| | | | | | | | | | | | | | | | | | Remove redundant args `collection` and `predicate` which were always equal to `minibuffer-completion-table` and `minibuffer-completion-predicate` anyway. (minibuffer-complete-word): * lisp/emacs-lisp/crm.el (crm-complete-word): Simplify accordingly.
* | * lisp/minibuffer.el (minibuffer--completion-prompt-end): RenameStefan Monnier2021-06-261-7/+7
| |
* | * lisp/emacs-lisp/cl-macs.el: Fix test regressionStefan Monnier2021-06-261-1/+8
| | | | | | | | | | (cl--alist-to-plist): New function. (cl-struct-slot-info): Use it.
* | Fix Tramp bug#49229Michael Albinus2021-06-261-1/+8
| | | | | | | | | | | | * lisp/net/tramp.el (tramp-file-name-handler): Drop possible volume letter when `expand-file-name' is called with a local absolute file name as first argument. (Bug#49229)
* | * lisp/minibuffer.el (completion--prompt-end): New function (bug#30668)Stefan Monnier2021-06-261-9/+14
| | | | | | | | | | | | (minibuffer-complete, minibuffer-force-complete-and-exit) (minibuffer-force-complete, minibuffer-complete-and-exit) (minibuffer-complete-word, minibuffer-completion-help): Use it.
* | Small improvements to handling of IMAP mark searchEric Abrahamsen2021-06-251-5/+11
| | | | | | | | | | | | * lisp/gnus/gnus-search.el (gnus-search-imap-handle-flag): Use a KEYWORD search for any mark starting with a "$", so "mark:$hasattachment" goes through as "KEYWORD $hasattachment".
* | Print newlines as \n instead of \12 in ERT resultsMattias Engdegård2021-06-251-1/+1
| | | | | | | | | | | | | | | | This makes test errors unquestionably more readable. The change also makes FF print as \f; other controls still use octal escapes. * lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline): Run `pp` with `pp-escape-newlines` set to `t`.
* | Make (find-face-definition 'default) work more reliablyLars Ingebrigtsen2021-06-251-1/+9
| | | | | | | | | | | | | | * lisp/emacs-lisp/find-func.el (find-function--defface): New function (bug#30230). (find-function-regexp-alist): Use it to skip past definitions inside comments and strings.
* | Fix the name of the sorted minor mode map after previous changeLars Ingebrigtsen2021-06-251-1/+1
| | | | | | | | | | * lisp/bindings.el (mode-line-major-mode-keymap): Change the name of the minor mode menu items.
* | Fix Tramp bug#49178Michael Albinus2021-06-251-8/+9
| | | | | | | | | | * lisp/net/tramp.el (tramp-handle-find-backup-file-name) (tramp-handle-make-auto-save-file-name): Adapt checks. (Bug#49178)
* | * lisp/tab-bar.el (tab-bar--define-keys): Fix global-mode-string (bug#49215)Juri Linkov2021-06-251-9/+6
| |
* | Prevent Org mode from mistakenly changing Calendar keymapStephen Berman2021-06-251-2/+2
| | | | | | | | | | * lisp/org/org-compat.el (org--setup-calendar-bindings): Fix logic in test of 'org-agenda-diary-file' (bug#48199).
* | Fix syntax-category of some punctuation charactersEli Zaretskii2021-06-251-5/+5
| | | | | | | | | | | | | | | | * lisp/textmodes/text-mode.el (text-mode-syntax-table): Don't modify the global syntax-table just because we load text-mode.el. This happens at loadup time, and then affects the default syntax in all modes, not just in text-mode and its derivatives. (Bug#49214)
* | * lisp/bindings.el (bindings--sort-menu-keymap): Add "menu" in its nameStefan Monnier2021-06-241-11/+7
| | | | | | | | (bindings--menu-item-string): Use `pcase`.
* | * lisp/emacs-lisp/cl-preloaded.el: Fix the format of props in slot-descsStefan Monnier2021-06-242-18/+13
| | | | | | | | | | | | | | | | | | | | (cl--plist-remove): Remove. (cl--plist-to-alist): New function. (cl-struct-define): Use it to convert slots's properties to the format expected by `cl-slot-descriptor`. * lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Revert last changes, not needed any more.
* | Don't call ERT explainer on errorMattias Engdegård2021-06-241-6/+7
| | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert--expand-should-1): If the predicate form signals an error, don't call an explainer because the arguments passed (the error and error argument, respectively) do not make any sense to the explainer at all.
* | Attempt to make defclass documentation more legibleLars Ingebrigtsen2021-06-242-4/+8
| | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl--print-table): Attempt to make defclass documentation more readable (bug#30998). (cl--describe-class-slots): Ditto.
* | Fix printing of defclass documentation slots againLars Ingebrigtsen2021-06-241-2/+8
| | | | | | | | | | | | * lisp/emacs-lisp/cl-extra.el (cl--describe-class-slots): Fix printing defclass slots, and retain printing of defstruct slots (bug#30998 and bug#46662).
* | Allow `C-u M-x dig' to ask for a query typeLars Ingebrigtsen2021-06-241-3/+8
| | | | | | | | | | * lisp/net/dig.el (dig): Allow prompting for a query type (bug#31810).
* | Add SASL authentication to rcircAlex McGrath2021-06-241-2/+42
| | | | | | | | | | | | | | | | | | * lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function (bug#48601). (rcirc-authenticate): (rcirc-connect): Support sasl. (rcirc-get-server-password, rcirc-get-server-method): New functions. (rcirc-authinfo): Document it.
* | Fix highlighting in cperl-mode for "for /regex/"E. Choroba2021-06-241-1/+1
| | | | | | | | | | * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Fix highlighting of regexp in "print for /./;" (bug#49192).
* | Ignore file-missing errors during diff-refined font-lockingJim Porter2021-06-241-11/+14
| | | | | | | | | | * lisp/vc/diff-mode.el (diff--font-lock-refined): Ignore file-missing errors (bug#49197).
* | Clarify the help in the package buffersLars Ingebrigtsen2021-06-241-1/+2
| | | | | | | | | | * lisp/emacs-lisp/package.el (package--quick-help-keys): Clarify marking help (bug#40457).
* | Sort the items in 'mode-line-mode-menu' before displaying the menuJim Porter2021-06-241-4/+39
| | | | | | | | | | | | | | * lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap): New functions. (mode-line-major-mode-keymap, mode-line-minor-mode-keymap): Sort 'mode-line-mode-menu'.
* | * lisp/printing.el (pr-global-menubar): Fix duplicate menu problem.Saroj Thirumalai2021-06-231-18/+9
| | | | | | | | | | | | | | | | | | | | In Emacs 27.1 Print menu items were moved to a submenu of the File menu. The Printing package (lisp/printing.el) replaces the Print menu (via the function: pr-global-menubar). The latter needs to be updated to reflect the changes; otherwise, a second Print (sub)menu is created at the end of the File menu. Copyright-paperwork-exempt: yes
* | Fix defvar->defcustom conversion in ethio-util.elMauro Aranda2021-06-231-11/+11
| | | | | | | | | | | | | | | | * lisp/language/ethio-util.el (ethio-primary-language) (ethio-secondary-language): Don't quote the const. (ethio-use-three-dot-question, ethio-quote-vowel-always) (ethio-W-sixth-always, ethio-numeric-reduction) (ethio-java-save-lowercase): Really make them defcustom.
* | Make ethio-* variables into user optionsLars Ingebrigtsen2021-06-231-11/+37
| | | | | | | | | | | | | | | | | | * lisp/language/ethio-util.el (ethiopic): New group. (ethio-primary-language, ethio-secondary-language) (ethio-use-colon-for-colon, ethio-use-three-dot-question) (ethio-quote-vowel-always, ethio-W-sixth-always) (ethio-numeric-reduction, ethio-java-save-lowercase): Make into user options (bug#33024).
* | Revert "Sort the items in 'mode-line-mode-menu' before displaying the menu"Lars Ingebrigtsen2021-06-231-32/+4
| | | | | | | | | | | | This reverts commit d4d6d8f335165e2bda8942b4acd45e5bab613b70. This approach doesn't work on certain types of keymaps, so it should be implemented in a different way.
* | Sort the items in 'mode-line-mode-menu' before displaying the menuJim Porter2021-06-231-4/+32
| | | | | | | | | | | | | | * lisp/bindings.el (bindings--menu-item-string, bindings--sort-keymap): New functions. (mode-line-major-mode-keymap, mode-line-minor-mode-keymap): Sort 'mode-line-mode-menu'.
* | Clean up code in `message-replace-header'dickmao2021-06-231-6/+4
| | | | | | | | | | * lisp/gnus/message.el (message-replace-header): Elide redundancy (bug#49180).
* | Fix message-replace-header after recent changedickmao2021-06-231-5/+5
| | | | | | | | | | * lisp/gnus/message.el (message-replace-header): Restore else branch removed by mistake in 989de3b824 (bug#49179).
* | Give feedback to the user in dired-do-find-regexpLars Ingebrigtsen2021-06-221-0/+2
| | | | | | | | | | * lisp/dired-aux.el (dired-do-find-regexp): Give some feedback to the user (bug#35352).
* | Make minor mode docstrings say what the mode "variable" isLars Ingebrigtsen2021-06-221-3/+9
| | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Add the mode variable (bug#36500). (easy-mmode--mode-docstring): (define-minor-mode): Pass in the getter.