~suntong001/emacs-starter-kit/+git/master:scratch/icomplete-vertical-mode-improvements

Last commit made on 2021-05-30
Get this branch:
git clone -b scratch/icomplete-vertical-mode-improvements https://git.launchpad.net/~suntong001/emacs-starter-kit/+git/master

Branch merges

Branch information

Name:
scratch/icomplete-vertical-mode-improvements
Repository:
lp:~suntong001/emacs-starter-kit/+git/master

Recent commits

638f541... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Add annotation capability to icomplete-vertical-mode

Co-authored-by Daniel Mendler <email address hidden>

* lisp/icomplete.el (icomplete--affixate): New helper.
(icomplete--render-vertical): Use it. Rework.
(icomplete-completions): Pass md to icomplete--render-vertical.

4b2c73f... by =?utf-8?b?Sm/Do28gVMOhdm9yYQ==?= <email address hidden>

Improve icomplete-vertical-mode and fido-vertical-mode

If icomplete-scroll and icomplete-vertical-mode are turned on,
icomplete-mode feels more like a typical vertical completion chooser.

M-x fido-mode augmented with M-x fido-vertical is the now the
recommended way to experience fido-mode.

* etc/NEWS (icomplete-vertical-mode): Reword.

* lisp/icomplete.el (simple): Require it.
(icomplete-selected-match): New face.
(icomplete-scroll): New user-visible var.
(icomplete-forward-completions): Rework.
(icomplete-backward-completions): Rework.
(icomplete--fido-mode-setup): Prefer icomplete-scroll according to
icomplete-vertical mode.
(icomplete-minibuffer-setup): Initialize icomplete--scrolled-completions.
(icomplete--vertical-minibuffer-setup): Initialize icomplete-propspects-height
to a more common value.
(fido-vertical-mode): An alias for icomplete-vertical-mode.
(icomplete-exhibit): Init icomplete--scrolled-past. Adjust overlay.
(icomplete--render-vertical): New helper.
(icomplete-completions): Rework. Mostly reformat.

* lisp/simple.el (max-mini-window-height): New helper.
(display-message-or-buffer): Use it.

15f46b9... by Mauro Aranda

Do not reset settings when disabling a theme

* lisp/custom.el (disable-theme): Don't call custom-push-theme, since
that resets the theme settings and it isn't useful: we only need to
remove the theme setting from the themed variable or face. This fixes
a regression when "toggling" themes, introduced while fixing Bug#34027.
(Bug#48736)

23ad0f0... by Eli Zaretskii

Don't account for character compositions in 'format' and friends

'lisp_string_width' is called from 'format' and 'format-message',
which can be called both very early into Emacs initialization and in
other contexts where using the font backend is impossible or
undesirable. So this commit changes 'lisp_string_width' to try
accounting for automatic compositions only when explicitly requested,
and only 'string-width' does that; 'format' and 'format-message'
don't.
* src/character.c (lisp_string_width): Accept an additional
argument AUTO_COMP; attempt accounting for auto-compositions only
if that argument is non-zero. (Bug#48732)
* src/editfns.c (styled_format):
* src/character.c (Fstring_width): Callers of 'lisp_string_width'
adjusted.

7671d47... by Lars Ingebrigtsen <email address hidden>

Clarify that `symbol-file' only works for symbols in Lisp files

* lisp/subr.el (symbol-file): Mention help-C-file-name in the doc
string (bug#14932).

c8ec798... by Lars Ingebrigtsen <email address hidden>

Allow help-C-file-name to work on symbols designating subrs

* lisp/help-fns.el (help-C-file-name): Allow working on symbols
designating subrs (bug#14932).

db1de74... by Lars Ingebrigtsen <email address hidden>

Fix kmacro-view-ring-2nd doc string

* lisp/kmacro.el (kmacro-view-ring-2nd): Fix doc string (bug#15020).

253e524... by Lars Ingebrigtsen <email address hidden>

Move menu-bar-select-buffer to msb.el

* lisp/menu-bar.el (menu-bar-select-buffer): Move from
here... (bug#15651).
* lisp/msb.el (menu-bar-select-buffer): ... to here (which is the
only usage in-tree in Emacs).

9e70520... by Stephen Gildea <email address hidden>

time-stamp: improve unit-test coverage

* test/lisp/time-stamp-tests.el (time-stamp-format-year-4digit,
time-stamp-format-ignored-modifiers): Improve coverage with more cases.
(time-stamp-format-multiple-conversions): New test.

fdfb3df... by Lars Ingebrigtsen <email address hidden>

`minibuffer-exit-hook' doc string clarification

* src/minibuf.c (syms_of_minibuf): `minibuffer-exit-hook' is run
in the minubuffer usually, so don't claim that it's run after
(bug#16524).