From a1883913f882a8a6e32bd08bfd8e6f4754b348db Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 8 Oct 2004 17:02:16 +0000 Subject: [PATCH] (isearch-yank-line): C-y yanks to next EOL, not end of current line. --- lisp/ChangeLog | 7 ++++++- lisp/isearch.el | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 236993fd00b..f71d6800846 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,4 +1,9 @@ -2004-10-09 Masatake YAMATO +2004-10-08 Alan Mackenzie + + * isearch.el (isearch-yank-line): C-y yanks to next EOL, not end + of current line. + +2004-10-08 Masatake YAMATO * server.el (server-process-filter): Wrap `process-send-region' by `condition-case' to guard the case when the pipe to PROC is diff --git a/lisp/isearch.el b/lisp/isearch.el index 96a3e0e0ac2..45ac5b4d286 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1254,8 +1254,8 @@ might return the position of the end of the line." (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. -- 2.39.5