]> git.eshelyaron.com Git - emacs.git/commit
Add completion-tab-width to align prefix chars with names in read-char-by-name
authorJuri Linkov <juri@linkov.net>
Fri, 27 Nov 2020 09:17:12 +0000 (11:17 +0200)
committerJuri Linkov <juri@linkov.net>
Fri, 27 Nov 2020 09:17:12 +0000 (11:17 +0200)
commit13e032bab34fb33efee23184c02baa62ebe4dbfc
tree20e5b7b75e65226d369c0b3201de30c2e20f0fe6
parent597a49b2e2ef664cc99a7f1a1ecad7d22df096a1
Add completion-tab-width to align prefix chars with names in read-char-by-name

* lisp/international/mule-cmds.el (mule--ucs-names-affixation):
Replace mule--ucs-names-annotation to display chars in prefixes
that implements two FIXME items.
(read-char-by-name): Let-bind completion-tab-width to 4.
Use affixation-function instead of annotation-function.

* lisp/minibuffer.el (completion-tab-width): New variable.
(completion--insert-strings): Align colwidth to tab positions
when completion-tab-width is non-nil.

* lisp/simple.el (completion-setup-function): Set tab-width to
completion-tab-width when completion-tab-width is non-nil.

https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg01263.html
lisp/international/mule-cmds.el
lisp/minibuffer.el
lisp/simple.el