From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: desktop Date: Fri, 22 Aug 2003 23:59:56 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87ekzmsdjs.fsf@emacswiki.org> <3F3DDDF3.4090500@math.ku.dk> <87lltrt111.fsf@emacswiki.org> <3F41E39F.6040502@math.ku.dk> <3F432759.7090005@math.ku.dk> <3F450793.9020201@math.ku.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061633901 21606 80.91.224.253 (23 Aug 2003 10:18:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Aug 2003 10:18:21 +0000 (UTC) Cc: alex@emacswiki.org, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Aug 23 12:18:19 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qVTP-0007RG-00 for ; Sat, 23 Aug 2003 12:18:19 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19qVXz-0002xI-00 for ; Sat, 23 Aug 2003 12:23:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qVJU-0002gS-H2 for emacs-devel@quimby.gnus.org; Sat, 23 Aug 2003 06:08:04 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19qPyL-0003Is-Ga for emacs-devel@gnu.org; Sat, 23 Aug 2003 00:25:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19qPoD-0006CO-Vh for emacs-devel@gnu.org; Sat, 23 Aug 2003 00:15:57 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qPc5-0007lk-T1 for emacs-devel@gnu.org; Sat, 23 Aug 2003 00:02:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.20) id 19qPZE-0001bT-07; Fri, 22 Aug 2003 23:59:56 -0400 Original-To: Lars Hansen In-reply-to: <3F450793.9020201@math.ku.dk> (message from Lars Hansen on Thu, 21 Aug 2003 19:55:31 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16102 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16102 > @example > (desktop-load-default) > (desktop-read) > (setq desktop-enable t) > @end example > >Are you saying that the second option is a mistake? > > Yes. The desktop module adds an anonymous function to the after-init-hook, this function calls desktop-read. What should that text say? desktop-remove is, according to the docstring, supposed to "Delete the Desktop file and inactivate the desktop system". If we introduce desktop-save as a minor mode, disabling is should be done by the mode function. Furthermore desktop-remove only removes the desktop file in desktop-dirname, not desktop files in other directories. I think it would be better not to delete any desktop file at all. Let's keep desktop-remove for compatibility.