From: Chetan Pandya <pandyacus@sbcglobal.net>
To: emacs-devel@gnu.org
Subject: recursive edit in isearch
Date: Wed, 18 Mar 2009 18:29:28 -0700 (PDT) [thread overview]
Message-ID: <735308.67201.qm@web80703.mail.mud.yahoo.com> (raw)
In-Reply-To: E1LjNtq-0006eZ-Tw@fencepost.gnu.org
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)
prev parent reply other threads:[~2009-03-19 1:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1LjD5L-0002L8-TV@cvs.savannah.gnu.org>
2009-03-16 17:18 ` emacs/lisp/mail rmail.el Glenn Morris
2009-03-17 1:15 ` Richard M Stallman
2009-03-17 1:22 ` Glenn Morris
2009-03-17 18:25 ` Richard M Stallman
2009-03-19 1:29 ` Chetan Pandya [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=735308.67201.qm@web80703.mail.mud.yahoo.com \
--to=pandyacus@sbcglobal.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.