From: "Drew Adams" <drew.adams@oracle.com>
To: "'Nix'" <nix@esperi.org.uk>, "'Dani Moncayo'" <dmoncayo@gmail.com>
Cc: 'Stefan Monnier' <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: RE: Isearch: retrieve last successful search string from when you quit (`C-g')
Date: Tue, 2 Oct 2012 06:55:54 -0700 [thread overview]
Message-ID: <BE6CEFA0633740B5B362B8130793632A@us.oracle.com> (raw)
In-Reply-To: <87obkl5d42.fsf@spindle.srvr.nix>
> Quite. Perhaps I'm just an idiot, but I always thought the current
> isearch behaviour of not immediately quitting when C-g was stuck on a
> failed search was a *bug*.
That is something very different from what this thread is about (and not a bug,
IMO). The C-g behavior in Emacs incremental search is somewhat complex (depends
on the search state), and fine as is (IMO).
> Only now, after Drew commented on it, do I
> notice that it's removing the unfound component of the failed
> search: i.e., it's a feature, but unless you spend your time
> looking at the echo area while isearching (and who does that?)
> they'll never notice it.
And that too is something very different from what this thread is about.
This thread is about a proposal to save (it is not currently saved) the last
_successful_ search string when you exit isearch using C-g. It is not about
saving the search string for a _failed_ search.
A successful search is one where the search string is found - matches text in
the buffer. Just because a search is successful does not mean that you decide
to accept it, i.e., to stay at one of the search hits.
C-g abandons a successful search, and it keeps no record of the search string
that was successful.
The question of this thread is whether to save (one way or another) the search
string when searching succeeded and make it available to you later, and if so,
how.
next prev parent reply other threads:[~2012-10-02 13:55 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-30 21:09 Isearch: retrieve last successful search string from when you quit (`C-g') Drew Adams
2012-10-01 6:41 ` Dani Moncayo
2012-10-01 14:57 ` Stefan Monnier
2012-10-01 15:05 ` Christopher Monsanto
2012-10-01 15:11 ` Dani Moncayo
2012-10-01 15:22 ` Drew Adams
2012-10-01 15:21 ` Drew Adams
2012-10-01 15:30 ` Christopher Monsanto
2012-10-01 15:40 ` Drew Adams
2012-10-01 15:41 ` Dani Moncayo
2012-10-01 16:00 ` Drew Adams
2012-10-01 17:49 ` Juri Linkov
2012-10-01 18:21 ` Drew Adams
2012-10-01 18:31 ` Dani Moncayo
2012-10-01 18:47 ` Drew Adams
2012-10-01 18:50 ` Christopher Monsanto
2012-10-01 18:54 ` Lennart Borgman
2012-10-01 20:00 ` Drew Adams
2012-10-01 19:12 ` Dani Moncayo
2012-10-02 11:26 ` Nix
2012-10-02 13:55 ` Drew Adams [this message]
2012-10-02 16:48 ` Eli Zaretskii
2012-10-04 11:37 ` Nix
2012-10-05 22:58 ` Andrew W. Nosenko
2012-10-01 15:18 ` Drew Adams
2012-10-02 3:22 ` Stephen J. Turnbull
2012-10-02 12:37 ` Richard Stallman
2012-10-02 14:05 ` Isearch: retrieve last successful search string from when youquit (`C-g') Drew Adams
2012-10-01 15:17 ` Isearch: retrieve last successful search string from when you quit (`C-g') Drew Adams
2012-10-02 11:29 ` Nix
2012-10-02 14:03 ` Drew Adams
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=BE6CEFA0633740B5B362B8130793632A@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=dmoncayo@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=nix@esperi.org.uk \
/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).