summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2006-07-09 11:04:19 +0000
committerRomain Francoise <romain@orebokech.com>2006-07-09 11:04:19 +0000
commit933f846719f290bcfc67b28242ca2ec3964413f4 (patch)
tree7089f39b3517e110b81b5ee82d3a038f29402db5 /lisp/isearch.el
parent5fc5b7e842f10fca77536a1a7742ef76ec224023 (diff)
downloademacs-933f846719f290bcfc67b28242ca2ec3964413f4.tar.gz
(isearch-yank-line): Let-bind `inhibit-field-text-motion' to t.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index 014c8efe188..4dbb29d99dc 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.