unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 7700@debbugs.gnu.org
Subject: bug#7700: 24.0.50; C-y binding withing Isearch mode
Date: Thu, 23 Dec 2010 19:23:38 +0000	[thread overview]
Message-ID: <20101223192338.GA1114@muc.de> (raw)
In-Reply-To: <B29BB5429EE94EE5A02ED0CFCD55DA03@us.oracle.com>

Hi, Drew!

On Thu, Dec 23, 2010 at 09:28:55AM -0800, Drew Adams wrote:
> > > Personally, I find this behavior inconsistent/annoying: I would
> > > expect that C-y within Isearch add text X to the search text,
> > > where X is the text that would be yanked in normal editing.

> > FWIW, I'd agree.  I've always found the C-y binding in isearch
> > "useless" and counter-intuitive.  I'd much rather make C-y and M-y
> > behave like they do in the minibuffer.

What do they do in the minibuffer?  C-h c doesn't seem to work in the
minibuffer (as it doesn't in isearch also).

> 1+

> Why not bring it up in emacs-devel, to see what counter arguments
> there might be?  I'm thinking that Richard, for example, might express
> some good reasons behind the longstanding behavior.

C-y (as it currently is) helps when you're trying to spot the difference
between two sequences of lines.  You do C-s, repeatedly followed by C-y
until the second occurrance is no longer highlit.  This identifies the
differing line, and C-w then helps pin down the difference within the
line.

> ---

> Although I haven't used `C-y' in isearch in a long time, I'm not sure its
> behavior is "useless".  It would probably be good to have some isearch key
> binding for what C-y does now.

How about M-y?

> Juri might mention that there are few keys available. ;-)

> One possibility might be `C-u C-y' (since the C-u behavior for C-y doesn't apply
> during isearch), but that would mean sacrificing C-u's ability to exit isearch.
> Worse, C-u is currently passed to any exiting key (e.g. `C-u C-n'), which can be
> handy.

C-u C-y is too cumbersome for a key sequence you're likely to want to
repeat.

> Personally, I wouldn't mind sacrificing `C-u' for this - I think there are
> plenty of keys to exit a search.  But I know that others do object to losing any
> exit keys, and `C-u' is also a special case wrt exiting.

C-u is potentially useable by an isearch command (including a
"scrolling" command) to enter a repeat count.  When
`isearch-allow-scroll' is enabled, C-u C-l is a useful key sequence -
for example.  Let's not lose this facility.

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2010-12-23 19:23 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 19:06 bug#7700: 24.0.50; C-y binding withing Isearch mode Dani Moncayo
2010-12-21 21:26 ` Dani Moncayo
2010-12-23 15:30 ` Stefan Monnier
2010-12-23 16:09   ` Lennart Borgman
2010-12-23 16:46   ` Leo
2010-12-23 17:05     ` Andreas Schwab
2010-12-23 22:39       ` Leo
2010-12-23 17:14   ` Alan Mackenzie
2010-12-24  2:39     ` Stefan Monnier
2010-12-24  3:25       ` Lennart Borgman
2010-12-24 11:39         ` Dani Moncayo
2010-12-24 12:13           ` Lennart Borgman
2010-12-24 13:34             ` Dani Moncayo
2010-12-25  2:38               ` Juri Linkov
2010-12-25  4:06           ` Stefan Monnier
2010-12-25 11:15             ` Dani Moncayo
2010-12-25 19:52               ` Stefan Monnier
2010-12-25 20:09                 ` Lennart Borgman
2010-12-27 22:15                 ` Alan Mackenzie
2010-12-27 22:36                   ` Drew Adams
2010-12-28  0:14                     ` Lennart Borgman
2010-12-28  0:51                       ` Drew Adams
2010-12-28  1:34                         ` Lennart Borgman
2010-12-28  5:43                           ` Drew Adams
2010-12-26 23:13     ` Andrew W. Nosenko
2010-12-26 23:33       ` Andrew W. Nosenko
2010-12-23 17:28   ` Drew Adams
2010-12-23 19:23     ` Alan Mackenzie [this message]
2010-12-23 19:30       ` Dani Moncayo
2010-12-23 20:48         ` Drew Adams
2010-12-23 20:58           ` Lennart Borgman
2010-12-23 21:28         ` Alan Mackenzie
2010-12-23 22:28           ` Drew Adams
2010-12-23 23:08           ` Dani Moncayo
2010-12-25  2:34         ` Juri Linkov
2010-12-25  4:07           ` Stefan Monnier
2010-12-23 20:46       ` Drew Adams
2010-12-23 19:48     ` Juri Linkov
2011-05-16 15:11 ` bug#7700: 24.0.50; C-y binding in " Dani Moncayo
2011-05-16 15:42   ` Stefan Monnier

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=20101223192338.GA1114@muc.de \
    --to=acm@muc.de \
    --cc=7700@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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).