From: Juri Linkov <juri@jurta.org>
Subject: Desktop saves isearch-mode
Date: Mon, 17 Oct 2005 11:05:04 +0300 [thread overview]
Message-ID: <87slv1esu9.fsf@jurta.org> (raw)
When isearch leaves the buffer in isearch mode (this can happen after
switching buffers during incremental search), and desktop-mode is
enabled, it writes isearch-mode as one of buffer's minor modes to the
desktop file.
This causes bad effects during restoring the desktop. When desktop.el
calls isearch-mode to restore file's minor modes, isearch-mode changes
the global value of `minibuffer-message-timeout' to nil. Also it leaves
isearch-mode active globally.
A simple fix is to not write isearch-mode to the desktop file:
Index: lisp/desktop.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/desktop.el,v
retrieving revision 1.94
diff -c -r1.94 desktop.el
*** lisp/desktop.el 12 Oct 2005 09:16:35 -0000 1.94
--- lisp/desktop.el 17 Oct 2005 08:04:59 -0000
***************
*** 410,416 ****
(defcustom desktop-minor-mode-table
'((auto-fill-function auto-fill-mode)
! (vc-mode nil))
"Table mapping minor mode variables to minor mode functions.
Each entry has the form (NAME RESTORE-FUNCTION).
NAME is the name of the buffer-local variable indicating that the minor
--- 410,417 ----
(defcustom desktop-minor-mode-table
'((auto-fill-function auto-fill-mode)
! (vc-mode nil)
! (isearch-mode nil))
"Table mapping minor mode variables to minor mode functions.
Each entry has the form (NAME RESTORE-FUNCTION).
NAME is the name of the buffer-local variable indicating that the minor
--
Juri Linkov
http://www.jurta.org/emacs/
next reply other threads:[~2005-10-17 8:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 8:05 Juri Linkov [this message]
2005-10-17 21:57 ` Desktop saves isearch-mode Richard M. Stallman
2005-10-18 8:07 ` Juri Linkov
2005-10-19 2:43 ` Richard M. Stallman
2005-10-19 15:54 ` Juri Linkov
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=87slv1esu9.fsf@jurta.org \
--to=juri@jurta.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.