[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Desktop saves isearch-mode
From: |
Juri Linkov |
Subject: |
Desktop saves isearch-mode |
Date: |
Mon, 17 Oct 2005 11:05:04 +0300 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
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/
- Desktop saves isearch-mode,
Juri Linkov <=