diff options
| author | Richard M. Stallman | 2007-01-01 21:49:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-01-01 21:49:04 +0000 |
| commit | d8a4fc444aae4582e22a2bd674d58c230a516b10 (patch) | |
| tree | 875d9321528aeb81399f70ab346d016c01e25e3a | |
| parent | 7327156500e30406bf96c874e991c2a7c46fb70f (diff) | |
| download | emacs-d8a4fc444aae4582e22a2bd674d58c230a516b10.tar.gz emacs-d8a4fc444aae4582e22a2bd674d58c230a516b10.zip | |
(isearch-done): Use FOUND-POINT or FOUND-START
only if we restored isearch-window-configuration.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/isearch.el | 16 |
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1cd2f794e5f..ebe0dc9b668 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-01-01 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-done): Use FOUND-POINT or FOUND-START | ||
| 4 | only if we restored isearch-window-configuration. | ||
| 5 | |||
| 1 | 2006-12-31 Romain Francoise <romain@orebokech.com> | 6 | 2006-12-31 Romain Francoise <romain@orebokech.com> |
| 2 | 7 | ||
| 3 | * net/tramp.el (tramp-default-method): Don't use `symbol-function'. | 8 | * net/tramp.el (tramp-default-method): Don't use `symbol-function'. |
diff --git a/lisp/isearch.el b/lisp/isearch.el index a7d239aebc2..ca569eeff16 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -784,13 +784,15 @@ NOPUSH is t and EDIT is t." | |||
| 784 | (lazy-highlight-cleanup lazy-highlight-cleanup) | 784 | (lazy-highlight-cleanup lazy-highlight-cleanup) |
| 785 | (let ((found-start (window-start (selected-window))) | 785 | (let ((found-start (window-start (selected-window))) |
| 786 | (found-point (point))) | 786 | (found-point (point))) |
| 787 | (if isearch-window-configuration | 787 | (when isearch-window-configuration |
| 788 | (set-window-configuration isearch-window-configuration)) | 788 | (set-window-configuration isearch-window-configuration) |
| 789 | 789 | (if isearch-small-window | |
| 790 | (if isearch-small-window | 790 | (goto-char found-point) |
| 791 | (goto-char found-point) | 791 | ;; set-window-configuration clobbers window-start; restore it. |
| 792 | ;; Exiting the save-window-excursion clobbers window-start; restore it. | 792 | ;; This has an annoying side effect of clearing the last_modiff |
| 793 | (set-window-start (selected-window) found-start t))) | 793 | ;; field of the window, which can cause unwanted scrolling, |
| 794 | ;; so don't do it unless truly necessary. | ||
| 795 | (set-window-start (selected-window) found-start t)))) | ||
| 794 | 796 | ||
| 795 | (setq isearch-mode nil) | 797 | (setq isearch-mode nil) |
| 796 | (if isearch-input-method-local-p | 798 | (if isearch-input-method-local-p |