[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
recursive edit in isearch
From: |
Chetan Pandya |
Subject: |
recursive edit in isearch |
Date: |
Wed, 18 Mar 2009 18:29:28 -0700 (PDT) |
It looks like recursive edit in isearch mode will not save/restore. Current
code will try to restore the buffer if the window buffer is different from the
current buffer.
A simple change is to make sure it is so that the buffer is not restored, in
case the buffer changed in the mean time.
Change
diff -u /emacs-23/lisp/isearch.el.~1.345.~ /emacs-23/lisp/isearch.el
--- /emacs-23/lisp/isearch.el.~1.345.~ Tue Feb 17 01:27:04 2009
+++ /emacs-23/lisp/isearch.el Thu Mar 19 01:24:24 2009
@@ -811,8 +811,7 @@
;; the calling function until searching is completed) by entering
;; a recursive-edit and exiting it when done isearching.
(if recursive-edit
- (let ((isearch-recursive-edit t))
- (recursive-edit)))
+ (save-excursion (set-buffer (window-buffer)) (recursive-edit)))
isearch-success)