From: Dani Moncayo <dmoncayo@gmail.com>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Nix <nix@esperi.org.uk>,
Stefan Monnier <monnier@iro.umontreal.ca>,
Drew Adams <drew.adams@oracle.com>,
emacs-devel@gnu.org
Subject: Re: C-g from Isearch (was: Isearch: retrieve last successful search string from when you quit (`C-g'))
Date: Wed, 3 Oct 2012 08:37:49 +0200 [thread overview]
Message-ID: <CAH8Pv0iCn88MLb8zpRVnp+q-k6Y0XJnBmOM=W6K=S+im158p4Q@mail.gmail.com> (raw)
In-Reply-To: <87ehlgkur8.fsf@uwakimon.sk.tsukuba.ac.jp>
> > 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.
>
> In XEmacs, this is useless duplication. Deleting the character has
> the same effect some rather large fraction of the time, as it's
> unusual that multiple not found characters are typed.
AFAIK, this is true also for GNU Emacs. Typing <backspace> in Isearch
restores the previous Isearch state. So I agree with you: `C-g'
duplicates this feature (almost - `C-g' restores the last successful
state) at the expense of annoying those user who expect this command
to its usual job (cancel the current command).
> > 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.
>
> I'm tempted to just change XEmacs's behavior to "always cancel" and
> see how many cries of outrage can be induced.
I've done that in my init file:
(define-key isearch-mode-map [?\C-g] 'isearch-cancel)
--
Dani Moncayo
next prev parent reply other threads:[~2012-10-03 6:37 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH8Pv0iCn88MLb8zpRVnp+q-k6Y0XJnBmOM=W6K=S+im158p4Q@mail.gmail.com' \
--to=dmoncayo@gmail.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=nix@esperi.org.uk \
--cc=stephen@xemacs.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.