From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: Re: Unknown option `--no-desktop' Date: Mon, 15 Nov 2004 23:38:59 +0100 (CET) Message-ID: <57659.194.95.226.87.1100558339.squirrel@wwws.franken.de> References: <23032.217.194.34.123.1100536660.squirrel@wwws.franken.de> <25556.217.194.34.123.1100543413.squirrel@wwws.franken.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1100558396 31826 80.91.229.6 (15 Nov 2004 22:39:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2004 22:39:56 +0000 (UTC) Cc: Stephan Stahl , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 15 23:39:43 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CTpVe-0007dr-00 for ; Mon, 15 Nov 2004 23:39:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTpeN-0006BF-JH for ged-emacs-devel@m.gmane.org; Mon, 15 Nov 2004 17:48:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CTpeD-00069W-I9 for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:48:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CTpeC-00068s-8p for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:48:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTpeB-00068b-QV for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:48:31 -0500 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CTpUy-0004cZ-Bt for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:39:00 -0500 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id AC58D245C8; Mon, 15 Nov 2004 23:38:56 +0100 (CET) Original-Received: from 194.95.226.87 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Mon, 15 Nov 2004 23:38:59 +0100 (CET) In-Reply-To: Original-To: bob@rattlesnake.com 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: main.gmane.org gmane.emacs.devel:29892 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29892 Hi Robert. Robert J. Chassell said: > Right. In fact, the `--no-desktop' option means that a desktop is > loaded, contrary to the documentation. > > It also means, as separate issue, that even though I have specified > `no desktop', I am asked about saving a desktop when I quit Emacs. > > Yes. My understanding is that `Hairy startup options' (as the Emacs > manual calls them) override .emacs files. > > There is a time issue: if I were to load the .emacs before the > --no-desktop option, I would expect *all* the desktop related > functions to be turned off. If I ran `M-x desktop-save' after first > turning all the functions off, I would expect the functions to be > autoloaded and the `desktop-save' function to be executed. Well yes you are right. --no-desktop does not have any effect in your case because of coding and timing. --no-desktop is only honored once. When the file is loaded. In that case desktop-save-mode does not get enabled. after that one test the string "--no-desktop" is removed from the options list. Maybe the fact that --no-deskop was given should be saved in a variable the the desktop save functions test und only save when that variable is nil oder where called interactively? However i do not understand why you have some lines in you .emacs files that cause the desktop to get saved. desktop.el should do that automaticly when emacs is killed.. Maybe you should just remove those lines. Stephan -- Stephan Stahl