unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g'))
@ 2012-10-02 15:42 Dani Moncayo
  2012-10-02 16:22 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Dani Moncayo @ 2012-10-02 15:42 UTC (permalink / raw)
  To: Drew Adams; +Cc: Nix, Stefan Monnier, emacs-devel

>> 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).

IIUC, the behavior of C-g from Isearch is not that complex.  As
documented in (info "(emacs)Error in Isearch"), `C-g' from Isearch
does this:
* If the current search is successful, `C-g' cancels the Isearch.
* Else, `C-g' restores the last succesful search string.

And I, like Nix, don't like the second case.  I would like C-g to
_always_ cancel the Isearch.

So IMO this behavior should be configurable.

-- 
Dani Moncayo



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-10-03 16:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 15:42 C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g')) Dani Moncayo
2012-10-02 16:22 ` Drew Adams
2012-10-02 17:05   ` Dani Moncayo
2012-10-02 17:06 ` C-g from Isearch Stefan Monnier
2012-10-02 17:08   ` Nix
2012-10-02 17:18   ` Drew Adams
2012-10-03  1:33     ` Stefan Monnier
2012-10-03  5:08 ` C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g')) Stephen J. Turnbull
2012-10-03  6:37   ` Dani Moncayo
2012-10-03 15:19   ` C-g from Isearch Jason Rumney
2012-10-03 15:45     ` Dani Moncayo
2012-10-03 16:44       ` Jason Rumney

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).