emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Request for Enhancement: C-y in Isearch mode should yank to next EOL.


From: Alan Mackenzie
Subject: Request for Enhancement: C-y in Isearch mode should yank to next EOL.
Date: Sun, 26 Sep 2004 09:24:04 +0000 (GMT)

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  <address@hidden>

        * 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 ()





reply via email to

[Prev in Thread] Current Thread [Next in Thread]