From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Desktop saves isearch-mode Date: Mon, 17 Oct 2005 11:05:04 +0300 Organization: JURTA Message-ID: <87slv1esu9.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129541564 8345 80.91.229.2 (17 Oct 2005 09:32:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2005 09:32:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 17 11:32:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERRLH-0000yT-2Z for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2005 11:31:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERRLG-0007yR-6E for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2005 05:31:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ERQ2k-0006Ht-Cv for emacs-devel@gnu.org; Mon, 17 Oct 2005 04:08:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ERQ2K-00066O-3f for emacs-devel@gnu.org; Mon, 17 Oct 2005 04:08:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERQ1v-0005yD-Tb for emacs-devel@gnu.org; Mon, 17 Oct 2005 04:07:37 -0400 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ERQ1v-0002pJ-Jn for emacs-devel@gnu.org; Mon, 17 Oct 2005 04:07:35 -0400 Original-Received: from mail.neti.ee (80-235-32-85-dsl.mus.estpak.ee [80.235.32.85]) by Relayhost1.neti.ee (Postfix) with ESMTP id 3FADC1FB8 for ; Mon, 17 Oct 2005 11:07:48 +0300 (EEST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44167 Archived-At: 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/