]> code.delx.au - gnu-emacs/blobdiff - lisp/isearch.el
(compilation-error-regexp-alist-alist) extend irix for NAG Fortran and add ftnchek-*
[gnu-emacs] / lisp / isearch.el
index 96a3e0e0ac22118b191a91881d4be104f5ccce01..45ac5b4d2864d94edd7cda622fe1748b4a9d468a 100644 (file)
@@ -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.