<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/doc, branch scratch/annotation-function-improvements</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Overhaul annotation-function to match affixation-function</title>
<updated>2021-05-25T23:47:22+00:00</updated>
<author>
<name>João Távora</name>
</author>
<published>2021-05-24T15:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=93342b5776f4ad0819b2822c17bd3b836442c218'/>
<id>93342b5776f4ad0819b2822c17bd3b836442c218</id>
<content type='text'>
* 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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
</pre>
</div>
</content>
</entry>
<entry>
<title>Document bug-reference setup for 3rd-party packages</title>
<updated>2021-05-22T17:06:57+00:00</updated>
<author>
<name>Tassilo Horn</name>
</author>
<published>2021-05-22T17:06:57+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=62e2dce3a99cffb174240eed633196058e3c18a2'/>
<id>62e2dce3a99cffb174240eed633196058e3c18a2</id>
<content type='text'>
* 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from origin/emacs-27</title>
<updated>2021-05-22T16:19:01+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2021-05-22T16:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=048dc9441e77e5147ddf3c2ab64ddc3ba6fa0f3a'/>
<id>048dc9441e77e5147ddf3c2ab64ddc3ba6fa0f3a</id>
<content type='text'>
30e5d93ee1 (origin/emacs-27) Improve documentation of display tables
8804ac857b * src/buffer.c (syms_of_buffer) &lt;ctl-arrow&gt;: Doc fix.  (Bu...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
30e5d93ee1 (origin/emacs-27) Improve documentation of display tables
8804ac857b * src/buffer.c (syms_of_buffer) &lt;ctl-arrow&gt;: Doc fix.  (Bu...
</pre>
</div>
</content>
</entry>
<entry>
<title>* doc/emacs/maintaining.texi (Bug Reference): Fix cross refs.</title>
<updated>2021-05-22T16:17:56+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2021-05-22T16:17:56+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=35182fff407ce9e6180e50e627914d63c4f3504c'/>
<id>35182fff407ce9e6180e50e627914d63c4f3504c</id>
<content type='text'>
"First argument to cross-reference may not be empty." (makeinfo 4).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"First argument to cross-reference may not be empty." (makeinfo 4).
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix native-comp-async-report-warnings-errors :type</title>
<updated>2021-05-22T12:22:29+00:00</updated>
<author>
<name>Basil L. Contovounesios</name>
</author>
<published>2021-05-22T12:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=43fd13770a8ac8452669e4de3281e9189cb36c5a'/>
<id>43fd13770a8ac8452669e4de3281e9189cb36c5a</id>
<content type='text'>
* 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).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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).
</pre>
</div>
</content>
</entry>
<entry>
<title>Add documentation about bug-reference auto-setup.</title>
<updated>2021-05-21T21:15:46+00:00</updated>
<author>
<name>Tassilo Horn</name>
</author>
<published>2021-05-21T21:11:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=a3de48687eb28121f3dbfc20be19bd06c4cd6e98'/>
<id>a3de48687eb28121f3dbfc20be19bd06c4cd6e98</id>
<content type='text'>
* 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve documentation of display tables</title>
<updated>2021-05-21T06:51:17+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2021-05-21T06:51:17+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=30e5d93ee1b938c207c4f5ec015ba2633cf423cd'/>
<id>30e5d93ee1b938c207c4f5ec015ba2633cf423cd</id>
<content type='text'>
* doc/lispref/display.texi (Display Tables): Add a cross-reference
to the next section.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/lispref/display.texi (Display Tables): Add a cross-reference
to the next section.
</pre>
</div>
</content>
</entry>
<entry>
<title>; Improve new bug-reference manual section</title>
<updated>2021-05-20T19:30:10+00:00</updated>
<author>
<name>Tassilo Horn</name>
</author>
<published>2021-05-20T19:30:10+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8349f8294c3853299ad94779c25ee9fad6806b80'/>
<id>8349f8294c3853299ad94779c25ee9fad6806b80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>(completing-read): Add `group-function` to the completion metadata</title>
<updated>2021-05-20T17:50:23+00:00</updated>
<author>
<name>Daniel Mendler</name>
</author>
<published>2021-04-25T11:07:29+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=443d9efc9524be6aff5d9703b81a821b3bb12f35'/>
<id>443d9efc9524be6aff5d9703b81a821b3bb12f35</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>* doc/emacs/maintaining.texi (Bug Reference): Add debbugs-browse-mode.</title>
<updated>2021-05-20T12:33:43+00:00</updated>
<author>
<name>Michael Albinus</name>
</author>
<published>2021-05-20T12:33:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=72ec24d4808c763d8d1fd4ae45b315b9a4b4011b'/>
<id>72ec24d4808c763d8d1fd4ae45b315b9a4b4011b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
