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: Tue, 19 Aug 2003 10:45:19 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3F41E39F.6040502@math.ku.dk> References: <87ekzmsdjs.fsf@emacswiki.org> <3F3DDDF3.4090500@math.ku.dk> <87lltrt111.fsf@emacswiki.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061282887 8949 80.91.224.253 (19 Aug 2003 08:48:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2003 08:48:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Aug 19 10:48:05 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 19p29t-00020x-00 for ; Tue, 19 Aug 2003 10:48:05 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19p2Cd-0003ui-00 for ; Tue, 19 Aug 2003 10:50:55 +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 19p28I-0003Mv-Eh for emacs-devel@quimby.gnus.org; Tue, 19 Aug 2003 04:46:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19p27w-0003M5-Nn for emacs-devel@gnu.org; Tue, 19 Aug 2003 04:46:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19p27I-0003El-CX for emacs-devel@gnu.org; Tue, 19 Aug 2003 04:45:55 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19p27H-0003EQ-Sp; Tue, 19 Aug 2003 04:45:23 -0400 Original-Received: from imf.math.ku.dk ([130.225.103.32]) by mx20.gnu.org with esmtp (Exim 4.20) id 19p27H-0002wp-FR; Tue, 19 Aug 2003 04:45:23 -0400 Original-Received: by imf.math.ku.dk (Postfix on SuSE Linux 7.3 (i386), from userid 73) id 41517978D4; Tue, 19 Aug 2003 10:45:21 +0200 (MEST) Original-Received: from imf (localhost [127.0.0.1]) by spamwall (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 5E7C7978E1; Tue, 19 Aug 2003 10:45:20 +0200 (MEST) Original-Received: from math.ku.dk (pc33.math.ku.dk [10.2.1.33]) by imf.math.ku.dk (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 1012B978CF; Tue, 19 Aug 2003 10:45:20 +0200 (MEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-To: Miles Bader , Alex Schroeder , rms@gnu.org In-Reply-To: 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:16022 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16022 About the desktop module enabling thing: When `desktop-enable' is nil the desktop module should do absolutely nothing. Otherwise the variable name would be misleading. When `desktop-enable' is non-nil, the module should try to load a desktop when Emacs is started, and it should try to save it when Emacs is killed. There are several variable that let you customize how. Alex pointed out that you have to set `desktop-enable' to non-nil if you want the desktop saved at Emacs kill, this was not so previously (in the released versions of Emacs). That is true. IMHO it was a bug that the desktop was saved even if `desktop-enable' was nil. That bug is corrected now. Alex also pointed out that the documentation in the desktop module and in the manual is wrong. That is also true. It should be something like: To enable desktop saving, use customize to set `desktop-enable' to non-nil. Alternatively, place the following two lines somewhere in your .emacs file: (desktop-load-default) (setq desktop-enable t) You should not call `desktop-read' in your .emacs file, that is done in the `after-init-hook'. It is also wrong, as stated it the manual, that you need to save the desktop manually the first time. Previously that was needed in order the set the value of `desktop-dirname'. Now Emacs will ask when killed if the value is needed and unknown. I agree with Miles and Alex that it would be confusing to users if simply loading the desktop module would enable it. So I think `desktop-enable' should continue to have the default value nil. I think more updates to the documentation of the desktop module is needed. I will work on it and post some proposals later. Lars