From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: desktop Date: Sat, 16 Aug 2003 01:31:51 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87ekzmsdjs.fsf@emacswiki.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060990434 1766 80.91.224.253 (15 Aug 2003 23:33:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 23:33:54 +0000 (UTC) Cc: larsh@math.ku.dk Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Aug 16 01:33:53 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 19no4v-0002tS-00 for ; Sat, 16 Aug 2003 01:33:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19no68-0002Gv-00 for ; Sat, 16 Aug 2003 01:35:08 +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 19no4S-000227-Tc for emacs-devel@quimby.gnus.org; Fri, 15 Aug 2003 19:33:24 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19no3Y-0001xx-QD for emacs-devel@gnu.org; Fri, 15 Aug 2003 19:32:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19no32-0001Jc-Mw for emacs-devel@gnu.org; Fri, 15 Aug 2003 19:32:27 -0400 Original-Received: from [62.2.95.247] (helo=smtp.hispeed.ch) by monty-python.gnu.org with esmtp (Exim 4.20) id 19no32-0001Fy-2v for emacs-devel@gnu.org; Fri, 15 Aug 2003 19:31:56 -0400 Original-Received: from confusibombus.emacswiki.org (dclient80-218-249-202.hispeed.ch [80.218.249.202]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id h7FNVp0a018268; Sat, 16 Aug 2003 01:31:54 +0200 Original-To: emacs-devel@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACkElEQVR42s1a0bLsIAgzjv// y7kPd9pVKxKVdk6fzux2C4EAwR6QZBpcQEopIf3Fq3a52Lfh0Mjjk99zcWYBwA2ihEen9jVxfAf/ u0+Y2HQwNoVw4Dx34trRV6NSjiLPmfPt77jwiBxB/3PnZ3B2AGxzHnGu0wcBwAIAyQwZGvQhiFcy YLOFQcSB/MS82n3ec37vykNqRFTX9rVWR2U5+pZNIggll0CUOQN9BDdm1LfBmcZxIEqjL6r2JU/D galaB7Zg4jlY2ulnIx9OR4iMRl38CAFyKaA8jAxE7lNn650VKMULZ/54crqn0YQCJGQliebXkFIK hwqmGm28cgsSjz/hzRCMneQEwMjVoH3gWTtMPgIslJUV5uIluvUEkyzU+gUGQO62e9NuSdZCzNOM fDPC87iCqfE9gHinsIrSL16TPBfrYIeHzqKU90a50jCh54EcrgAUFo5ibzvebgr/I66USQ0CspQp IVSoBQK3WswDDIndIraHxoglqOjM1d044PQvu1NY0EHtqQR/XwJ+PeCs0x2dSlApZVw4MPER23PD 7JekoHxrqTRod/2Gx5nhx5dfAJhqPt7tDMIZxNN/7lOIaparPn7ZQ88drlORC2eLWXowxIq4gHTh VN1BSmsHoxYAbPWDTuGQuuecS+aYQUYpfr0YqPQOuuUk5tApK077+2xfOYP+XyWEIwPcE49lvT9N y2+wU2KylGGp4yxlALcm6fSlmgk62yfSsfNunDl5d6W91MBUoZw679YAJoMMkhijuXdFOL+khaL2 s+g3zy4APQuQvSc/BNAYnkl6E8ivYtEHJXa1dihE3zgnKMdNgN8DiIwgA17NykUMvFDQ+LALvXXI BuBLAHv/DvBmc/0HzR03PqXmLcQAAAAASUVORK5CYII= User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) 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:15973 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15973 I'm a bit confused by desktop.el as it is in Emacs CVS. I'm using it without using custom. The documentation in the info manual says that I can enable it by using the following in my .emacs file: (desktop-load-default) (desktop-read) All I need to do then, according to the manual, is saving it manually once using M-x desktop-save. This has worked very well. Recently, however, I get the feeling that the info in my ~/.emacs.desktop file is read upon startup, but never updated when I quit Emacs. Unless I save it manually. Testing this in a subdirectory seems to confirm this. The reason seems to be that desktop-kill tests the value of desktop-enable, but that variable is nil on my system. One solution might be to set it to t, and add it to desktop-globals-to-save when desktop-save is called... Calling desktop-save would then write a desktop file which sets desktop-enable to t, making the entire thing work again. Perhaps simpler: We could fix the documentation and the commentary to say that we need the following setup (if Customize is not used): (desktop-load-default) (desktop-read) (setq desktop-enable t) I believe that the manual is wrong on another account as well: It says that one manual save is required, but it is not. If the user does not manually save the desktop, then Emacs will ask the user when Emacs is killed whether the desktop should be saved. Which is just fine, I think. If you agree with this, then I can change the documentation as proposed. Alex. -- http://www.emacswiki.org/alex/ There is no substitute for experience.