From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: desktop Date: Thu, 21 Aug 2003 19:55:31 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F450793.9020201@math.ku.dk> References: <87ekzmsdjs.fsf@emacswiki.org> <3F3DDDF3.4090500@math.ku.dk> <87lltrt111.fsf@emacswiki.org> <3F41E39F.6040502@math.ku.dk> <3F432759.7090005@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061538241 6371 80.91.224.253 (22 Aug 2003 07:44:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 07:44:01 +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 Fri Aug 22 09:43:59 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 19q6aV-0003DG-00 for ; Fri, 22 Aug 2003 09:43:59 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19q6ea-0005KK-00 for ; Fri, 22 Aug 2003 09:48:12 +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 19q6BM-0005pK-54 for emacs-devel@quimby.gnus.org; Fri, 22 Aug 2003 03:18:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19q48W-0005mn-Ai for emacs-devel@gnu.org; Fri, 22 Aug 2003 01:06:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19q45T-0004lR-Br for emacs-devel@gnu.org; Fri, 22 Aug 2003 01:04:18 -0400 Original-Received: from [62.84.220.10] (helo=post.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.20) id 19pti1-0001by-B3; Thu, 21 Aug 2003 13:58:53 -0400 Original-Received: from math.ku.dk [62.84.220.219] by post.kabelnettet.dk with ESMTP (SMTPD32-8.01) id A7A21CD0001E; Thu, 21 Aug 2003 19:55:46 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en Original-To: rms@gnu.org 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:16055 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16055 > > >Here's what the manual says now: > > To use Desktop, you should use the Customization buffer (@pxref{Easy > Customization}) to set @code{desktop-enable} to a non-@code{nil} value, > or add these lines at the end of your @file{.emacs} file: > > @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. >Otherwise, it looks like desktop-read should set desktop-enable. >Is there a case where people want to use desktop-read without >setting desktop-enable? > Yes. desktop-enable is supposed to enable _automatic_ desktop save and restore. You might want to call desktop-read without the side effect of enabling automatic saving. > - Get rid of desktop-remove > >Why do that? > > 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.