]> git.eshelyaron.com Git - emacs.git/commit
* lisp/isearch.el: Improve 'isearch-allow-motion' feature (bug#50466)
authorJuri Linkov <juri@linkov.net>
Mon, 13 Sep 2021 18:18:30 +0000 (21:18 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 13 Sep 2021 18:18:30 +0000 (21:18 +0300)
commita17bea6d63c23a943a6bae28e699398c4002c2a8
treeaae55405db00559b86783c9e66c630a8e44258b4
parent4cf6d03d04ecadfd74fa4998fde14dcc79fd6daf
* lisp/isearch.el: Improve 'isearch-allow-motion' feature (bug#50466)

* lisp/isearch.el: Add recenter to 'isearch-motion' property of
'end-of-buffer' to maximize the number of search hits on the screen.
In 'isearch-motion' property of 'scroll-up-command' use 'recenter 0'
for the first line of the screen.
(isearch-beginning-of-buffer)
(isearch-end-of-buffer): Sync logic from 'isearch-allow-motion' part
of isearch-pre-command-hook.  Direct users to isearch-allow-motion
in the docstrings.
(isearch-pre-command-hook): Don't override shifted 'isearch-yank-on-move'
in 'isearch-allow-motion'.
lisp/isearch.el