all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Alan Mackenzie'" <acm@muc.de>, "'Dani Moncayo'" <dmoncayo@gmail.com>
Cc: 7700@debbugs.gnu.org
Subject: bug#7700: 24.0.50; C-y binding withing Isearch mode
Date: Thu, 23 Dec 2010 14:28:47 -0800	[thread overview]
Message-ID: <F4DBD2CBCABB4E84A00999566BFADA9F@us.oracle.com> (raw)
In-Reply-To: <20101223212840.GB1114@muc.de>

> Yes, but you've got to suggest one!  Maybe C-M-y for "grab to 
> next line end".  That's an unused binding, similar to the
> existing C-y, and lends itself to easy repetition.

It's unused by vanilla Emacs, but I use it. ;-)

No, that's not a great argument to convince the Vanillafold.  But here it is:

I bind `C-M-y' globally to a command that yanks the secondary selection.  (I
also use `C-M-' as the prefix for selecting the secondary.)

And in Isearch I bind `C-M-y' to a command that does the same thing for Isearch.
IOW, it does for the secondary selection just what `M-y' (soon to be `C-y'?)
does for the last kill: it yanks the secondary selection into the search string.

(I cannot understand that others don't bind any keyboard key to yank the
secondary selection, except in so far as they never use the secondary selection.
I use it all the time, including in Isearch.  And the logical binding for it
(for me) is `C-M-y'.)

So in vanilla Emacs too I'd rather see `C-M-y' yank the secondary than yank the
rest of the line.

---

Wrt suggesting some other binding for yanking the rest of the line:

Alan's `C-u C-l' thingy exempts `C-u' from its normal role of exiting Isearch,
_if_ the user customizes `isearch-allow-scroll' to allow it.

The dispensation of `C-u' from exiting is here amalgamated with the choice to
allow scrolling via `C-l'.  The two choices could instead be separated.

IOW, we could have a separate option, `isearch-C-u-exits' (default t), that if
nil exempts `C-u' from exiting in _all_ cases, allowing it to be used in other
ways than just for scrolling.

That's presumably what Alan had in mind when he said:

  C-u is potentially useable by an isearch command
  (including a "scrolling" command)

In that case (`isearch-C-u-exits' = nil, so `C-u' does not exit), we could come
back to my suggestion of letting `C-u C-y' do what `C-y' does now: insert the
rest of the current line.

Yes, that would mean that only users who chose to give up exiting Isearch via
`C-u' could use `C-u C-y' to yank the rest of the line.  Just as, today, only
users who choose to give up exiting via `C-u' can use `C-u C-l' for scrolling
during Isearch.

The other alternative about `C-u' would be, as I mentioned earlier, to just
sacrifice its exiting behavior altogether (no user option).

---

As I mentioned earlier, we are now doing design, and this discussion really
belongs in emacs-devel, IMO.






  reply	other threads:[~2010-12-23 22:28 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
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 [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F4DBD2CBCABB4E84A00999566BFADA9F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7700@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=dmoncayo@gmail.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 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.