From: "Drew Adams" <drew.adams@oracle.com>
To: "'Dani Moncayo'" <dmoncayo@gmail.com>
Cc: 'Nix' <nix@esperi.org.uk>,
'Stefan Monnier' <monnier@iro.umontreal.ca>,
emacs-devel@gnu.org
Subject: RE: C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g'))
Date: Tue, 2 Oct 2012 09:22:42 -0700 [thread overview]
Message-ID: <564BDDC3CC59499682B17F7E762D02CB@us.oracle.com> (raw)
In-Reply-To: <CAH8Pv0j6wvWAAm+gK91fWcWDxDwP0jjCFE4JzmY2+DnAqOpq7Q@mail.gmail.com>
> > `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.
It already is. Just do this:
(define-key isearch-mode-map 'isearch-cancel)
And you also already have a key binding for this: `ESC ESC ESC'.
next prev parent reply other threads:[~2012-10-02 16:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=564BDDC3CC59499682B17F7E762D02CB@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).