GNU bug report logs - #7700
24.0.50; C-y binding withing Isearch mode

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Tue, 21 Dec 2010 19:01:02 UTC

Severity: minor

Merged with 8183

Found in version 24.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: gnu.emacs.bug <at> wongs.net
Subject: bug#8183: closed (Re: bug#7700: 24.0.50; C-y binding in Isearch mode)
Date: Mon, 16 May 2011 15:44:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#7700: isearch yanking

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 8183 <at> debbugs.gnu.org.

-- 
7700: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7700
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 7700-close <at> debbugs.gnu.org
Subject: Re: bug#7700: 24.0.50; C-y binding in Isearch mode
Date: Mon, 16 May 2011 12:42:54 -0300
> I think this bug can be closed, because with the current trunk, I
> already see the behavior requested in the OP, i.e. (within Isearch):

Thanks, done,


        Stefan

[Message part 3 (message/rfc822, inline)]
From: gnu.emacs.bug <at> wongs.net
To: bug-gnu-emacs <at> gnu.org
Subject: isearch yanking
Date: Sat, 5 Mar 2011 16:03:52 -0800
Hello!

I just spent a while trying to track down a bug in isearch.el that
turned out to be a "feature".  C-y has been hijacked to do some weird
thing where it pastes the entire next line of the buffer instead of
the kill ring. (Wacky!)

Please change it so that C-y works normally.

While I'm sure there's someone in the world who has a use for
searching for the entire next line, there are many, many more people
who find it useful to search for items from the kill ring.

Additionally, the way isearch is remapping the C-y key breaks Emacs's
consistency.  One of the wonderful things about Emacs is that it is
not modal.  The basic keys always work the same regardless of what
"mode" you are in.

If you are not convinced, please consider that cut and paste is
fundamental to Emacs.  C-y is so basic to how Emacs functions that
it's been listed in the Emacs tutorial (C-h t) for a quarter century.
The keybindings mentioned in the tutorial shouldn't be altered
lightly.

And finally, think about what a pain it is to teach people new to
Emacs that C-y works as yank and M-y is yank-pop, EXCEPT when doing a
search where M-y is yank and there is no way to do a yank-pop.  This
one small quirk has added work not only on to people who are trying to
learn Emacs, but on to the people teaching Emacs and trying to write
easy to understand documentation and tutorials.

Fortunately, the fix for this is easy. In isearch.el, just change the
line that defines C-y as isearch-yank-line to isearch-yank-kill.

-    (define-key map    "\C-y" 'isearch-yank-line)
+    (define-key map    "\C-y" 'isearch-yank-kill)

Thank you,

--B. Wong



This bug report was last modified 14 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.