summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul annotation-function to match affixation-functionscratch/annotation-function-improvementsJoão Távora2021-05-264-66/+80
| | | | | | | | | | | | | | | | | | * doc/lispref/minibuf.texi (Programmed Completion): Rework annotation-function and affixation-function. * lisp/help-fns.el (help--symbol-completion-table-annotation): Rename from help--symbol-completion-table-affixation. (help--symbol-completion-table): Use help--symbol-completion-table-annotation. * lisp/minibuffer.el (minibuffer-completion-help): Interpret annotation-function with more sophistication. * lisp/simple.el (read-extended-command): Use read-extended-command--annotation (read-extended-command--annotation): Rename from read-extended-command--affixation
* 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.
* * src/editfns.c (Finsert_char): Add docstring reference to read-char-by-name.Juri Linkov2021-05-221-2/+2
|
* Document bug-reference setup for 3rd-party packagesTassilo Horn2021-05-222-61/+91
| | | | | | | | | | * 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.
* Merge from origin/emacs-27Glenn Morris2021-05-222-6/+7
|\ | | | | | | | | 30e5d93ee1 (origin/emacs-27) Improve documentation of display tables 8804ac857b * src/buffer.c (syms_of_buffer) <ctl-arrow>: Doc fix. (Bu...
| * Improve documentation of display tablesEli Zaretskii2021-05-211-2/+3
| | | | | | | | | | * doc/lispref/display.texi (Display Tables): Add a cross-reference to the next section.
| * * src/buffer.c (syms_of_buffer) <ctl-arrow>: Doc fix. (Bug#48539)Eli Zaretskii2021-05-211-4/+4
| |
* | * doc/emacs/maintaining.texi (Bug Reference): Fix cross refs.Glenn Morris2021-05-221-2/+2
| | | | | | | | "First argument to cross-reference may not be empty." (makeinfo 4).
* | Fix bug#48476Michael Albinus2021-05-228-37/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-222-2/+5
| | | | | | | | | | | | | | | | * 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-212-8/+73
| | | | | | | | | | | | | | * 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.
* | ; * etc/NEWS: Fix typo in last change.Basil L. Contovounesios2021-05-211-1/+1
| |
* | * lisp/dired-aux.el (dired-do-revert-buffer): New defcustom (bug#48456).Juri Linkov2021-05-212-1/+30
| | | | | | | | (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
| |
* | ; * test/infra/gitlab-ci.yml: Fix it, again.Michael Albinus2021-05-211-8/+4
| |
* | ; * test/infra/gitlab-ci.yml: Fix previous commitMichael Albinus2021-05-211-0/+7
| |
* | Adapt native-comp entries in gitlab-ci.ymlMichael Albinus2021-05-211-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | * test/infra/gitlab-ci.yml (stages): New stages native-comp-images and native-comp. (build-native-bootstrap-speed0): Simplify. (build-native-bootstrap-speed1, build-native-bootstrap-speed2): Deactivate temporarily. * test/infra/gitlab-ci.yml (.build-template): Add 'needs:' clause. (.native-comp-template): New template. (build-native-bootstrap-speed0): Use it.
* | Avoid byte-compiler warning during bootstrapEli Zaretskii2021-05-211-0/+4
| | | | | | | | | | * lisp/isearch.el (multi-isearch-switch-buffer): Avoid byte-compiler warning.
* | Rearrange nativecomp tests for EMBAMichael Albinus2021-05-212-44/+68
| | | | | | | | | | | | | | | | | | | | | | * test/infra/Dockerfile.emba (emacs-native-comp-speed0): Add recipe. * test/infra/gitlab-ci.yml (stages): New stages native-comp-images and native-comp. (build-native-bootstrap-speed0): Simplify. (build-native-bootstrap-speed1, build-native-bootstrap-speed2): Deactivate temporarily.
* | * 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'.
* | ; Improve new bug-reference manual sectionTassilo Horn2021-05-201-9/+15
| |
* | * lisp/help.el (describe-bindings-outline): New defcustom (bug#45147).Juri Linkov2021-05-202-17/+31
| | | | | | | | | | (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-202-49/+22
| | | | | | | | | | | | | | | | | | | | (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-204-31/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | * doc/emacs/maintaining.texi (Bug Reference): Add debbugs-browse-mode.Michael Albinus2021-05-201-0/+13
| |
* | Improve documentation of 'etags' testsEli Zaretskii2021-05-202-0/+63
| | | | | | | | | | | | | | * test/manual/etags/README: New file. (Bug#46055) * test/README: Mention separate README files for tests in the 'manual' subdirectory
* | 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-203-14/+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
| |
* | Add a section about bug-reference-mode.Tassilo Horn2021-05-192-0/+57
| | | | | | | | | | | | | | * doc/emacs/maintaining.texi (Maintaining): Add a section about bug-reference-mode. * doc/emacs/emacs.texi (Top): Link to the new section about bug-reference-mode.
* | * lisp/simple.el (yank-from-kill-ring-rotate): New defcustom (bug#48478).Juri Linkov2021-05-192-3/+23
| | | | | | | | (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`.
* | Fix the unexec build on GNU/LinuxEli Zaretskii2021-05-192-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | The unexec build on GNU/Linux must use HYBRID_MALLOC (gmalloc.c) and sheap.c. This was inadvertently disabled because a configure-time test for 'sbrk' was moved as side effect of an unrelated change. * configure.ac: Test for 'sbrk' before using the result in the decision about SYSTEM_MALLOC and HYBRID_MALLOC. (HYBRID_MALLOC): Prevent Gnulib from redirecting 'free' to its replacement 'rpl_free'. * lib/Makefile.in (not_emacs_OBJECTS): Add mallooc/%.o and free.o.
* | * lisp/progmodes/sql.el: `sql-postgres-statement-starters' defcustomIngo Lohmar2021-05-191-0/+8
| | | | | | | | Recognize common table expression as statement start in Postgres.
* | Lift restriction for finding theme summary lineMauro Aranda2021-05-191-4/+6
| | | | | | | | | | | | * lisp/cus-theme.el (custom-theme-summary): Don't limit the file to having the deftheme form as the very first form, rather look for the deftheme form explicitly.