From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: desktop.el not playing nice Date: Sun, 17 Apr 2005 16:46:38 +0200 (CEST) Message-ID: <40781.194.95.226.87.1113749198.squirrel@wwws.franken.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1113749906 29169 80.91.229.2 (17 Apr 2005 14:58:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2005 14:58:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 17 16:58:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNBDn-0001Id-CQ for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2005 16:58:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNBHi-0004Mi-Ms for ged-emacs-devel@m.gmane.org; Sun, 17 Apr 2005 11:02:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNBF3-0003Si-Uc for emacs-devel@gnu.org; Sun, 17 Apr 2005 10:59:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNBEz-0003O7-HZ for emacs-devel@gnu.org; Sun, 17 Apr 2005 10:59:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNBEu-0003J4-PO for emacs-devel@gnu.org; Sun, 17 Apr 2005 10:59:12 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DNB4A-0004zL-5o for emacs-devel@gnu.org; Sun, 17 Apr 2005 10:48:06 -0400 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id 7AD49245C9 for ; Sun, 17 Apr 2005 16:46:38 +0200 (CEST) Original-Received: from 194.95.226.87 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Sun, 17 Apr 2005 16:46:38 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal 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:36051 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36051 Hi. I found that info/emacs-5 is not totaly clear about desktop.el Currently is says: ---------- You can save the desktop manually with the command `M-x desktop-save'. You can also enable automatic desktop saving when you exit Emacs: use the Customization buffer (*note Easy Customization::) to set `desktop-save-mode' to `t' for future sessions, or add this line in your `~/.emacs' file: (desktop-save-mode 1) When Emacs starts, it looks for a saved desktop in the current directory. Thus, you can have separate saved desktops in different directories, and the starting directory determines which one Emacs reloads. You can save the current desktop and reload one saved in another directory by typing `M-x desktop-change-dir'. Typing `M-x desktop-revert' reverts to the desktop previously reloaded. Specify the option `--no-desktop' on the command line when you don't want it to reload any saved desktop. ---------- Emacs only loads the saved desktop on startup when (desktop-save-mode 1) is in .emacs. Or desktop.el is loaded somehow before after-init-hook is run. When that is the case and i start emacs with --no-desktop it seems clear to me that i do not want to USE or ALTER the saved desktop. However when i try to exit emacs i get asked where the desktop file should be saved. I can not exit emacs without this step unless i disable desktop-save-mode. This seems wrong to me because i said --no-desktop and saving could overwrite my old desktop file. I work around this by starting emacs --no-desktop --eval "(customize-set-variable 'desktop-enable nil)" but this seems like a pitfall for emacs starters. Maybe --no-desktop should disable desktop-save-mode? What do others think? -- Stephan Stahl