unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: Nix <nix@esperi.org.uk>,
	"Stephen J. Turnbull" <stephen@xemacs.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Drew Adams <drew.adams@oracle.com>,
	emacs-devel@gnu.org
Subject: Re: C-g from Isearch
Date: Wed, 3 Oct 2012 17:45:38 +0200	[thread overview]
Message-ID: <CAH8Pv0iRyif-zkbPsYS63MhQ9KVUao13C0URt9KKF8+shP1NkQ@mail.gmail.com> (raw)
In-Reply-To: <87a9w3popx.fsf@gnu.org>

>> 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.
>
> Fast typing, and yank are two ways this can happen quite easily.

Yank doesn't count here, since the whole yanked string will be removed
from the search string with a single <backspace> keystroke.

> That
> said, I never knew about this behaviour of C-g in isearch before, and
> never would have expected it.  I usually end my isearch with RET, but if
> I did try C-g I would be surprised to see it working like undo rather
> than quit.

I agree, but that is the current behavior in Emacs.  At least, you can
fix this with
  (define-key isearch-mode-map [?\C-g] 'isearch-cancel)

-- 
Dani Moncayo



  reply	other threads:[~2012-10-03 15:45 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
2012-10-03 15:19   ` C-g from Isearch Jason Rumney
2012-10-03 15:45     ` Dani Moncayo [this message]
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=CAH8Pv0iRyif-zkbPsYS63MhQ9KVUao13C0URt9KKF8+shP1NkQ@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@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 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).