From: Tom <adatgyujto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Isearch should store aborted search strings too
Date: Wed, 7 Dec 2011 16:28:13 +0000 (UTC) [thread overview]
Message-ID: <loom.20111207T172252-912@post.gmane.org> (raw)
In-Reply-To: m239cwpd4g.fsf@igel.home
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.
next prev parent reply other threads:[~2011-12-07 16:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 15:14 Isearch should store aborted search strings too Tom
2011-12-07 16:20 ` Andreas Schwab
2011-12-07 16:28 ` Tom [this message]
2011-12-08 2:00 ` Stephen J. Turnbull
2011-12-08 15:02 ` Stefan Monnier
2011-12-07 16:45 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20111207T172252-912@post.gmane.org \
--to=adatgyujto@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).