From 933f846719f290bcfc67b28242ca2ec3964413f4 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Sun, 9 Jul 2006 11:04:19 +0000 Subject: [PATCH] (isearch-yank-line): Let-bind `inhibit-field-text-motion' to t. --- lisp/ChangeLog | 5 +++++ lisp/isearch.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 08832bd613..2ef7629a5b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-07-09 Romain Francoise + + * isearch.el (isearch-yank-line): Let-bind `inhibit-field-text-motion' + to t. + 2006-07-09 Stefan Monnier * textmodes/fill.el (fill-region-as-paragraph): Refine last change. diff --git a/lisp/isearch.el b/lisp/isearch.el index 014c8efe18..4dbb29d99d 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1357,7 +1357,8 @@ might return the position of the end of the line." "Pull rest of line from buffer into search string." (interactive) (isearch-yank-internal - (lambda () (line-end-position (if (eolp) 2 1))))) + (lambda () (let ((inhibit-field-text-motion t)) + (line-end-position (if (eolp) 2 1)))))) (defun isearch-search-and-update () ;; Do the search and update the display. -- 2.20.1