emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: [WIP PATCH] Controlling Isearch from the minibuffer


From: Drew Adams
Subject: RE: [External] : Re: [WIP PATCH] Controlling Isearch from the minibuffer
Date: Tue, 11 May 2021 19:38:46 +0000

> > Here's another alternative you might consider, which
> > doesn't throw out the adorable baby with the claimed
> > dirty bathwater.  It's offered by `isearch+.el' via
> > option `isearchp-initiate-edit-commands':
> 
> This looks like the option 'edit' of 'search-exit-option'.

I see that you've changed that in Emacs 27, from its
former simple choice of ON/OFF.

But no, it's apparently not the same thing.  Your `edit'
value applies to all "Other control and meta characters",
though the doc string of that option isn't clear about
this, and that description is from the doc string of
`isearch-forward'.

A cursory look at 27.2 `isearch-pre-command-hook' code
indicates that the `edit' value of that option only
does what `M-e' does: it sets `this-command' to
`isearch-edit-string'.  IOW, it sounds like just a way
to do `M-e' by hitting "Other control and meta" keys.

The feature I described is very different.  It lets you
specify the behavior of _specific commands_, having
them (1) invoke editing the search pattern and (2)
perform their normal actions on the search pattern.
(A normal action being typically to move backward,
possibly deleting some text.)

So really, there's nothing in common with what an
`edit' value for `search-exit-option' does.



reply via email to

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