summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/vc/diff-mode.el (diff-hunk-text): Test-driven fix for newlines.Juri Linkov2021-05-271-6/+12
| | | | | | | | * lisp/vc/diff-mode.el (diff-hunk-text): Fix handling of newlines to cover all test cases according to new test. * test/lisp/vc/diff-mode-tests.el (diff-mode-test-hunk-text-no-newline): New test to cover cases with no newline at end of file.
* Remove the base64 Face header repadding in GnusAlex Bochannek2021-05-262-61/+5
| | | | | | * lisp/gnus/gnus-fun.el (gnus-convert-face-to-png): Remove call. * lisp/gnus/gnus-util.el (gnus-base64-repad): Remove.
* Improve some doc strings in bookmark.elKarl Fogel2021-05-261-2/+17
| | | | | | | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-bmenu-load): Describe prefix argument behavior. Refer to related functions for more information. (bookmark-bmenu-save): Likewise refer to related functions. As discussed in this thread: https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00389.html From: Karl Fogel To: Eli Zaretskii Cc: Matthias Meulien, Drew Adams, Lars Ingebrigtsen, Stefan Monnier, Emacs Devel Subject: Re: [External] : Re: [PATCH] When deleting in bookmark menu, prompt for confirmation. Date: Sun, 09 May 2021 13:37:52 -0500 Message-ID: <87h7jboirj.fsf@red-bean.com>
* * lisp/international/mule-cmds.el (mule--ucs-names-group): Better char check.Juri Linkov2021-05-251-1/+2
|
* Make the Alacritty terminal an alias of xterm-256colorTassilo Horn2021-05-251-1/+1
| | | | | * lisp/faces.el (term-file-aliases): Make the Alacritty terminal an alias of xterm-256color (bug#48439).
* Make hs-set-up-overlay into user optionLars Ingebrigtsen2021-05-251-2/+4
| | | | | * lisp/progmodes/hideshow.el (hs-set-up-overlay): Make into defcustom (bug#48513).
* Restore `ff-find-other-file' buffer selection logicStephen Leake2021-05-251-2/+12
| | | | | * lisp/find-file.el (ff-find-other-file): Restore selection of buffer changed by previous change (bug#48535).
* Fix font and indentation of call-with-port in scheme-modeLars Ingebrigtsen2021-05-251-1/+4
| | | | | | * lisp/progmodes/scheme.el (scheme-font-lock-keywords-2): Add call-with-port (bug#48544). (call-with-port): Indent correctly.
* Handle syntactically invalid .dir-locals.el files betterLars Ingebrigtsen2021-05-251-0/+3
| | | | | | * lisp/files.el (dir-locals-read-from-dir): Handle syntactically invalid .dir-locals.el files more gently (bug#48568). Give a message instead of bugging out later.
* Do not switch to other window when minibuffer is selectedGregory Heytings2021-05-251-0/+3
| | | | | | * lisp/window.el (handle-select-window): Do not silently switch to other window when minibuffer is selected and mouse-autoselect-window is t (Bug#47969).
* Restore `dired-do-create-files' return valueLars Ingebrigtsen2021-05-251-14/+15
| | | | | | * lisp/dired-aux.el (dired-do-create-files): Preserve the return value from `dired-create-files', which is apparently an undocumented feature used by dired-aux-tests.el (dired-test-bug30624).
* * lisp/emacs-lisp/byte-opt.el: Make the build more reproducibleStefan Monnier2021-05-251-27/+13
| | | | | | (byte-compile-inline-expand): When inlining code from another file, always inline the byte-code version of the function. (byte-optimize--pcase): Simplify edebug spec.
* Allow years in a copyright range to be separated by en dashes.Philipp Stephani2021-05-251-7/+7
| | | | | | | | | * lisp/emacs-lisp/copyright.el (copyright-regexp) (copyright-years-regexp, copyright-update-year) (copyright-fix-years): Also include en dash. * test/lisp/emacs-lisp/copyright-tests.el (copyright-tests--data): New test cases.
* * lisp/transient.el: Update to package version 0.3.4.Jonas Bernoulli2021-05-251-5/+8
|
* Further improvements to completion-list-mode-mapGregory Heytings2021-05-252-2/+9
| | | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Mention the change, and mention the 'n' and 'p' keys bound to 'next-completion' and 'previous-completion'. (bug#47699). * lisp/minibuffer.el (minibuffer-local-completion-map): Change the M-g key to M-g M-c. * lisp/simple.el (completion-list-mode-map): Change the M-g key to M-g M-c. (read-expression-map): Bind M-g M-c to read-expression-switch-to-completions. (read-expression-switch-to-completions): New function.
* Improve completion-list-mode-mapGregory Heytings2021-05-252-1/+12
| | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Mention it. * lisp/minibuffer.el (minibuffer-local-completion-map): Add the M-g key for switch-to-completion (bug#47699). * lisp/simple.el (completion-list-mode-map): Make special-mode-map its parent, unbind the 'g' revert key, add the 'n' and 'p' keys for next-completion and previous-completion, and the M-g key for switch-to-minibuffer. (switch-to-minibuffer): New function.
* Use correct face when pulsing in CEDETGregory Heytings2021-05-251-2/+1
| | | | | * lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Use pulse-highlight-face, not pulse-highlight-start-face (bug#47810).
* Fix infloop in Modula-2 modeGregory Heytings2021-05-251-1/+4
| | | | | * lisp/progmodes/modula2.el (m2-smie-refine-colon): Stop looping when point does not move with forward-sexp (Bug#48011).
* * lisp/erc/erc-services.el: Fix newly-added Libera.Chat entry (bug#48529).Amin Bandali2021-05-241-3/+3
|
* Fix bug when moving directories to trashGregory Heytings2021-05-251-1/+3
| | | | | | * lisp/files.el (move-file-to-trash): Pass the correct dir-flag to make-temp-file so that a directory is created when a directory is being trashed (Bug#47960).
* Add Libera.chat to `erc-nickserv-alist'Corwin Brust2021-05-241-2/+12
| | | | | | | * lisp/erc/erc-services.el (erc-nickserv-alist): Add support for the Libera chat. Copyright-paperwork-exempt: yes
* Tweak c-mode bug reporting addressGlenn Morris2021-05-231-1/+1
| | | | | | | | * lisp/progmodes/cc-mode.el (c-mode-help-address): Switch to bug-gnu-emacs. This is an alias for the previous submit@debbugs address, except that if no Package header can be found, as often seems to happen for cc-mode reports, debbugs will assign the report to the "emacs" package rather than to "debbugs.gnu.org".
* Fix find invocation for macOS (Bug#48471).Philipp Stephani2021-05-231-3/+2
| | | | | | * lisp/progmodes/project.el (project--files-in-directory): Instead of appending a slash (which doesn't work well with macOS find), remove trailing slash and pass -H instead.
* Adapt tramp-archive-autoload-file-name-handlerMichael Albinus2021-05-231-4/+9
| | | | | * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Bind `default-directory' to safe value.
* Document bug-reference setup for 3rd-party packagesTassilo Horn2021-05-221-60/+56
| | | | | | | | | | * doc/emacs/maintaining.texi (Bug Reference): Add section explaining adding support for third-party packages. * lisp/progmodes/bug-reference.el (bug-reference-maybe-setup-from-vc) (bug-reference-maybe-setup-from-mail) (bug-reference-maybe-setup-from-irc): Rename from bug-reference--maybe-setup-from-*, i.e., un-privatize them because they are advertised in the docs now.
* Fix bug#48476Michael Albinus2021-05-227-18/+25
| | | | | | | | | | | | | | | | * lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Add implementation. * lisp/net/tramp-integration.el (tramp-rename-files) (tramp-rename-these-files): Declare them. * lisp/net/tramp.el (tramp-autoload-file-name-handler): Load tramp-archive.el if needed. (Bug#48476) * test/lisp/net/tramp-archive-tests.el (tramp-archive-test45-auto-load): Extend test. Use #' syntax for function symbols.
* * lisp/emacs-lisp/subr-x.el (if-let*, if-let): Use looser Edebug specStefan Monnier2021-05-221-12/+5
| | | | | | This makes the same spec work both for `if-let` and `when-let`. (when-let*, and-let*, when-let): Simplify accordingly.
* Fix native-comp-async-report-warnings-errors :typeBasil L. Contovounesios2021-05-221-1/+1
| | | | | | | | * doc/lispref/compile.texi (Native-Compilation Variables): Document 'silent' alternative of native-comp-async-report-warnings-errors. * lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors): Fix quoting in :type expression (bug#48586).
* Give 'when-let' and 'when-let*' their own Edebug specification.Philipp Stephani2021-05-221-2/+7
| | | | | | | | | The Edebug specification of 'if-let' and 'if-let*' doesn't work if the body is empty. While that's a pathological case, it's not wrong per se, and could arguably happen due to macro expansion. * lisp/emacs-lisp/subr-x.el (when-let*, when-let): Don't reuse Edebug specification from 'if-let*' and 'if-let'.
* * lisp/emacs-lisp/cl-macs.el (cl-loop): Add missing 'when' to specPhilipp Stephani2021-05-221-1/+2
|
* Add documentation about bug-reference auto-setup.Tassilo Horn2021-05-211-2/+2
| | | | | | | * doc/emacs/maintaining.texi (Bug Reference): Add documentation about the automatic setup. * lisp/progmodes/bug-reference.el (bug-reference-setup-from-irc-alist): Remove doubling in docstring.
* Robustify parsing of gnus-search search resultsEric Abrahamsen2021-05-211-2/+5
| | | | | * lisp/gnus/gnus-search.el (gnus-search-indexed-parse-output): Look for a "process finished" tag, and don't choke on mis-parsed lines.
* * lisp/dired-aux.el (dired-do-revert-buffer): New defcustom (bug#48456).Juri Linkov2021-05-211-1/+25
| | | | (dired-do-create-files): Use it.
* * lisp/simple.el (yank-from-kill-ring): Fix kill-ring-yank-pointer (bug#48478)Juri Linkov2021-05-211-3/+2
|
* Avoid byte-compiler warning during bootstrapEli Zaretskii2021-05-211-0/+4
| | | | | * lisp/isearch.el (multi-isearch-switch-buffer): Avoid byte-compiler warning.
* * lisp/help.el (describe-bindings-outline): New defcustom (bug#45147).Juri Linkov2021-05-201-17/+26
| | | | | (describe-bindings): Use describe-bindings-outline. (describe-bindings-internal): Remove function obsolete since 24.4.
* * lisp/vc/diff-mode.el (diff-hunk-text): Handle better "\ No newline at end".Juri Linkov2021-05-201-1/+8
|
* Fix off-by-one inconsistency of 'M-y C-y' (bug#48478).Juri Linkov2021-05-201-2/+2
| | | | | * lisp/simple.el (read-from-kill-ring): Increment kill-ring-yank-pointer by 1. (yank-from-kill-ring): Don't increment kill-ring-yank-pointer by 1.
* * lisp/international/mule-cmds.el: Use group-function in read-char-by-name.Juri Linkov2021-05-201-43/+13
| | | | | | | | | | (mule--ucs-names-group): Simplify for using by group-function. (read-char-by-name-group): Remove defcustom obsoleted by completions-group. (read-char-by-name): Mention completions-group and completions-group-sort in docstring. Use group-function when completions-group is non-nil. https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00791.html
* (minibuffer-completion-help): Add group sortingDaniel Mendler2021-05-201-6/+33
| | | | | | | | | | | | | | Sort the groups as returned by the `group-function` of the completion table depending on the value of the customizable variable `completions-group-sort`. By default `completions-group-sort` is set to nil. The variable can be set to the symbol `alphabetical` in order to configure alphabetical sorting. Furthermore, a custom sorting function can be used as value of `completions-group-sort`. * lisp/minibuffer.el (completions-group-sort): New variable. (minibuffer--group-by): Add SORT-FUN argument. (minibuffer-completion-help): Pass `completions-group-sort` to `minibuffer--group-by`.
* (completion--insert-vertical): Separate groups completelyDaniel Mendler2021-05-201-60/+48
| | | | | | | Insert the candidates vertically within the groups, but keep the groups separate using the full width group separators. * minibuffer.el (completion--insert-vertical): Adjust grouping.
* (minibuffer-completion-help): Do not check `completions-group` centrallyDaniel Mendler2021-05-201-2/+1
| | | | | | | | | The guard variable `completions-group` should be checked in each completion table individually. The guard variable `completions-detailed` variable is used in the same way. * minibuffer.el (minibuffer-completion-help): Remove check of `completions-group`.
* (completion--insert-strings): Split function; Full group title supportDaniel Mendler2021-05-201-118/+158
| | | | | | | | | | | | | Split `completion--insert-strings` into a function per completions format in order to increase readability and extensibility. This change eases the addition of more formats. Add support for group titles to the vertical and horizontal formatting functions. * minibuffer.el (completion--insert): Add new function. (completion--insert-vertical, completion--insert-horizontal, completion--insert-one-column): Extract function from `completion--insert-strings`. Use new function `completion--insert`. (completion--insert-strings): Use new insertion functions.
* (completing-read): Add `group-function` to the completion metadataDaniel Mendler2021-05-203-31/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A completion table can specify a `group-function` in its metadata. The group function takes two arguments, a completion candidate and a transform argument. The group function is used to group the candidates after sorting and to enhance the completion UI with group titles. If the transform argument is nil, the function must return the title of the group to which the completion candidate belongs. The function may also return nil if the candidate does not belong to a group. If the transform argument is non-nil, the function must return the transformed candidate. For example, the transformation allows to remove a redundant part of the candidate, which is then displayed in the title. The grouping functionality is guarded by the customizable variable `completions-group` and turned off by default for the *Completions* buffer. The specific form of the `group-function` has been chosen in order to allow allocation-free grouping. This is important for completion UIs, which continously update the displayed set of candidates (Icomplete, Vertico, Ivy, etc.). Only when the transform argument is non-nil the candidate transformation is performed, which may involve a string allocation as done in the function `xref--completing-read-group`. The function `xref-show-definitions-completing-read` makes use of the `group-function`, by moving the file name prefix to the title. If grouping is enabled, the *Completions* are displayed as "linenum:summary" instead of "file:linenum:summary". This way the *Completions* buffer resembles the *Occur* buffer. * doc/lispref/minibuf.texi: Add documentation. * lisp/minibuffer.el (completion-metadata): Describe the `group-function` in the docstring. (completions-group): Add guard variable, off by default. (completions-group-format): Add variable defining the format string for the group titles. (completions-group-title): Add face used by `completions-group-format` for the group titles. (completions-group-separator): Add face used by `completions-group-format` for the group separator lines. (minibuffer--group-by): New grouping function. (minibuffer-completion-help): Use it. (display-completion-list): Add optional GROUP-FUN argument. (completion--insert-strings): Add optional GROUP-FUN argument. Insert group titles if `completions-format` is `one-column`. Transform each candidate with the GROUP-FUN. Attach the untransformed candidate to the property `completion--string`. * lisp/simple.el (choose-completion): Retrieve the untransformed completion candidate from the property `completion--string`. * lisp/progmodes/xref.el: (xref--completing-read-group): New grouping function. (xref-show-definitions-completing-read): Use it.
* * lisp/simple.el (yank-from-kill-ring-rotate): New defcustom (bug#48478).Juri Linkov2021-05-191-2/+21
| | | | (read-from-kill-ring, yank-from-kill-ring): Use it.
* Fix rare failures in 'window-default-font-height'Eli Zaretskii2021-05-191-1/+5
| | | | | | * lisp/window.el (window-default-font-height): Avoid signaling an error when a client TTY frame happens to have an X-style 'display' parameter. (Bug#48408)
* * lisp/startup.el (command-line-1): Avoid byte-compiler warning.Eli Zaretskii2021-05-191-0/+3
|
* Fix custom type of recent dired-aux additionsGlenn Morris2021-05-191-2/+2
| | | | | * lisp/dired-aux.el (dired-compress-file-default-suffix) (dired-compress-directory-default-suffix): Fix :type.
* * lisp/kmacro.el (kmacro-lambda-form): Fix bug#48523Stefan Monnier2021-05-191-10/+16
| | | | | Re-add `counter` and `format` arguments, since they are used in `insert-kbd-macro`.
* * lisp/progmodes/sql.el: `sql-postgres-statement-starters' defcustomIngo Lohmar2021-05-191-0/+8
| | | | Recognize common table expression as statement start in Postgres.