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/



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to