diff options
author | João Távora <joaotavora@gmail.com> | 2021-05-30 16:26:02 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2021-06-01 10:40:54 +0100 |
commit | 05ab6e53e2cc82edb0b0916c880bdaa269267528 (patch) | |
tree | ee170ac1dda968069aa440a3885ef74a0cea6a69 /test/lisp/emacs-lisp/bytecomp-tests.el | |
parent | 062f5aa640db1b8208f9c45dd12fea08e85658d9 (diff) | |
download | emacs-05ab6e53e2cc82edb0b0916c880bdaa269267528.tar.gz emacs-05ab6e53e2cc82edb0b0916c880bdaa269267528.tar.bz2 emacs-05ab6e53e2cc82edb0b0916c880bdaa269267528.zip |
Improve icomplete-vertical-mode and fido-vertical-mode
This mode is intended to be used with Icomplete ('M-x icomplete-mode')
or Fido ('M-x fido-mode'), to display the list of completions
candidates vertically instead of horizontally. When used with
Icomplete, completions are rotated and selection kept at the top.
When used with Fido, completions scroll like a typical dropdown
widget.
If the dropdown behaviour is desired for Icomplete (instead of
rotation), icomplete-scroll can be adjusted separately by the user.
* 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.
(fido-vertical-mode): An alias for icomplete-vertical-mode.
(icomplete-exhibit): Init icomplete--scrolled-past. Adjust overlay.
(icomplete--render-vertical): New helper.
(icomplete--sorted-completions): If cache is stale, also
invalidate icomplete--scrolled-past.
(icomplete-completions): Rework. Mostly reformat.
* lisp/simple.el (max-mini-window-lines): New helper.
(display-message-or-buffer): Use it.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-tests.el')
0 files changed, 0 insertions, 0 deletions