unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Request for Enhancement: C-y in Isearch mode should yank to next EOL.
@ 2004-09-26  9:24 Alan Mackenzie
  2004-09-27  7:38 ` Richard Stallman
  2004-09-27 20:49 ` Alan Mackenzie
  0 siblings, 2 replies; 3+ messages in thread
From: Alan Mackenzie @ 2004-09-26  9:24 UTC (permalink / raw)


Hi, Emacs!

In Isearch mode, C-y yanks the text up to the end of the current line.
If point is already at EOL (e.g., you've just done a C-y), C-y does
nothing.  This is not useful.

I propose that C-y should instead yank to the next EOL, so that repeated
`C-y's yank succesive lines.  Here is a patch which does this:


2004-09-26  Alan Mackenzie  <acm@muc.de>

	* isearch.el (isearch-yank-line): C-y yanks to next EOL, not end
	of current line.

*** isearch-1.240.el	Sun Sep 26 08:03:05 2004
--- isearch-1.240.acm.el	Sun Sep 26 09:16:52 2004
***************
*** 1253,1259 ****
  (defun isearch-yank-line ()
    "Pull rest of line from buffer into search string."
    (interactive)
!   (isearch-yank-internal 'line-end-position))
  
  
  (defun isearch-search-and-update ()
--- 1253,1260 ----
  (defun isearch-yank-line ()
    "Pull rest of line from buffer into search string."
    (interactive)
!   (isearch-yank-internal
!    (lambda () (line-end-position (if (eolp) 2 1)))))
  
  
  (defun isearch-search-and-update ()

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

end of thread, other threads:[~2004-09-27 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-26  9:24 Request for Enhancement: C-y in Isearch mode should yank to next EOL Alan Mackenzie
2004-09-27  7:38 ` Richard Stallman
2004-09-27 20:49 ` Alan Mackenzie

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