unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10654: 24.0.93; isearch-yank-line moved from C-y
@ 2012-01-30 15:16 Aaron S. Hawley
  2012-01-30 18:54 ` Glenn Morris
  2012-01-30 22:59 ` Juri Linkov
  0 siblings, 2 replies; 7+ messages in thread
From: Aaron S. Hawley @ 2012-01-30 15:16 UTC (permalink / raw)
  To: 10654

I appreciate the new behavior of M-y in Isearch Mode.  I find it more
satisfying, and less frustrating, to be able to access the full kill
ring.

I was surprised that the previously unsatisfying command M-y overwrote
the behavior of C-y in Isearch Mode.  C-y had held the very useful
command of yanking the rest of the line into Isearch.  I eat and
breathe Diff output and line-oriented source code, so I would use the
C-y command often to search similar text or compare text in the buffer
or across buffers.  I use M-x diff or M-x compare-windows but Isearch
Mode can get the job done quicker in some cases.

I don't have any data to support that C-y is popular.  I won't suggest
that the bindings for Isearch Mode are anywhere near sane.  I recall I
was flummoxed by them at first.  The bindings are diabolical for
beginners in most ways, but how did I learn them if they weren't
coherent?  However, the new change is disruptive for existing users of
Emacs and after trying it for two weeks, I can confirm that putting
`isearch-yank-line' to the `M-s C-e' binding is unsatisfying (M-s C-k
makes more sense).  Though, without any data maybe I'm the only person
who uses it and needs a short key binding?

The proposed bindings for 24.1 are:

(define-key isearch-mode-map "\C-y" 'isearch-yank-kill)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)
(define-key isearch-mode-map "\M-s\C-e" 'isearch-yank-line)

I'd prefer to revert partially to:

(define-key isearch-mode-map "\C-y" 'isearch-yank-line)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)

Or keep the proposed new bindings, but at least give a better binding
than M-s C-e  for the old C-y.  How about the shorter (and obvious)
key binding of C-k?

(define-key isearch-mode-map "\C-y" 'isearch-yank-kill)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)
(define-key isearch-mode-map "\C-k" 'isearch-yank-line)

Thanks for Emacs,
aaron

-- 
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember!  Poor computer.  -- Guy Lewis Steele Jr.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-27 16:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 15:16 bug#10654: 24.0.93; isearch-yank-line moved from C-y Aaron S. Hawley
2012-01-30 18:54 ` Glenn Morris
2012-01-30 20:19   ` Aaron S. Hawley
2012-02-03 17:48     ` Kevin Rodgers
2012-02-04  0:17       ` Juri Linkov
2022-01-27 16:42   ` Lars Ingebrigtsen
2012-01-30 22:59 ` Juri Linkov

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).