]> git.eshelyaron.com Git - emacs.git/commit
Move buffer name completion to Lisp and add affixation function
authorEshel Yaron <me@eshelyaron.com>
Sun, 7 Jan 2024 19:48:40 +0000 (20:48 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jan 2024 20:07:45 +0000 (21:07 +0100)
commit18f744a706bd3897d877a1d3288d259160fd22cd
tree902016be4b8cac726e5c704e8d252133f9ab6a70
parent3cb13b58857603c4a05e168a5c98f56fdeb7dd68
Move buffer name completion to Lisp and add affixation function

* lisp/minibuffer.el (minibuffer-narrow-buffer-completions): Update
doc string.
(buffers-except-current-if-switching,internal-complete-buffer-except)
(internal-complete-buffer): Replace with...
(completion-buffer-name-table): ...this.  New function.
(completion-buffer-name-affixation): New function.

* src/minibuf.c (Fread_buffer): Use 'completion-buffer-name-table'
instead of...
(Finternal_complete_buffer): ...this.  Remove.
(syms_of_minibuf): Update.

* doc/emacs/mini.texi (Completion Options): Mention buffer name
annotations in the documentation of 'completions-detailed'.

* etc/NEWS: Announce.
doc/emacs/mini.texi
etc/NEWS
lisp/minibuffer.el
src/minibuf.c