emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling of [mouse-movement] and exiting isearch


From: Daniel Martín
Subject: Re: Handling of [mouse-movement] and exiting isearch
Date: Fri, 13 Nov 2020 11:50:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin)

Eli Zaretskii <eliz@gnu.org> writes:
>
> That's what we support now.  We could, of course, provide some minor
> mode that marks many commands with that property, if that's
> convenient.

Yes, that may be convenient.  If I understand correctly, the minor mode
would set isearch-allow-scroll to t on enter and leave it nil on exit.
And it could expose some functions like

(add-isearch-compatible-commands COMMAND1 COMMAND2 ...)
(remove-isearch-compatible-commands COMMAND1 COMMAND2 ...)
(isearch-compatible-command-p COMMAND)

that would transparently add/remove/query the isearch-scroll property of
their arguments.

A nice side effect of this new minor mode is that the naming will make
it more clear that not every command is about scrolling (for example,
enlarge-window), while keeping backwards compatibility.

I need to think about how this feature would play with the rest of the
configuration options in isearch.  What if the user wants
isearch-allow-scroll set to 'unlimited, for example.

Opinions?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]