summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/isearch.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 08832bd613e..2ef7629a5b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-09 Romain Francoise <romain@orebokech.com>
+
+ * isearch.el (isearch-yank-line): Let-bind `inhibit-field-text-motion'
+ to t.
+
2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/fill.el (fill-region-as-paragraph): Refine last change.
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.