changeset 57380:a3021a22f48b

(isearch-yank-line): C-y yanks to next EOL, not end of current line.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 08 Oct 2004 17:00:17 +0000
parents ea05d398b4d7
children bb0119c0fae0
files lisp/isearch.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/isearch.el	Fri Oct 08 15:50:59 2004 +0000
+++ b/lisp/isearch.el	Fri Oct 08 17:00:17 2004 +0000
@@ -1254,8 +1254,8 @@
 (defun isearch-yank-line ()
   "Pull rest of line from buffer into search string."
   (interactive)
-  (isearch-yank-internal 'line-end-position))
-
+  (isearch-yank-internal
+   (lambda () (line-end-position (if (eolp) 2 1)))))
 
 (defun isearch-search-and-update ()
   ;; Do the search and update the display.