]> git.eshelyaron.com Git - emacs.git/commit
Simplify and rely more in the post-command-hook
authorJimmy Aguilar Mena <spacibba@aol.com>
Thu, 19 Nov 2020 03:01:21 +0000 (04:01 +0100)
committerJimmy Aguilar Mena <spacibba@aol.com>
Fri, 20 Nov 2020 18:03:23 +0000 (19:03 +0100)
commitce8b5b2663b907be657a729a2bde4ab27a3ae1c0
tree5d3fc4246fe6b5deb9de3e44afe76cdfca752545
parent268170e7a9d58b8121d8737c4820448d15bb8d30
Simplify and rely more in the post-command-hook

* lisp/completions-highlight.el (completions-highlight-this-completion)
: Use the new function completions-highlight-select-near.
(completions-highlight-next-completion) : Removed
(completions-highlight-select-near) : New function to select and
highlight next candidate closer to point.
(completions-highlight-previous-completion) :
(completions-highlight-next-line-completion) :
(completions-highlight-previous-line-completion) : Removed as they are
not needed with the hook.
(with-minibuffer-scroll-window) : Add call to
completions-highlight-this-completion at the end.
(minibuffer-next-completion) :
(completions-highlight-previous-completion) :
(completions-highlight-next-line-completion) :
(minibuffer-previous-line-completion) : Remove reference to removed
functions.
(completions-highlight-completions-map) : Clear the bindings for the
removed functions.
(completions-highlight-setup) : Set
completions-highlight-this-completion in post-command-hook instead of
isearch-mode-end-hook.
lisp/completions-highlight.el