[Top][All Lists]

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

Re: Isearch should store aborted search strings too

From: Tom
Subject: Re: Isearch should store aborted search strings too
Date: Wed, 7 Dec 2011 16:28:13 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Tom <adatgyujto <at> gmail.com> writes:
> > I often use isearch to check something in other parts of the
> > file and then go back to the starting point by aborting isearch
> > with ctrl+G.
> Alternative: type RET and then C-u C-SPC.

Yes, but it's much more typing than a simple C-g which is not a good thing
in case of a frequent operation. I use isearch quite a lot to move around
in buffers.

As a workaround I added an advice which forces isearch to always store
the search string:

(defadvice isearch-done (before my-isearch-done activate)
  (ad-set-arg 0 nil))

With this anyone can try it how it feels in practice. I find it
quite convenient that I can quickly repeat an isearch with
C-s C-s regardless if I exited the search normally or aborted it.

reply via email to

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