From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Unknown option `--no-desktop' Date: Mon, 15 Nov 2004 22:24:32 +0000 (UTC) Message-ID: References: <23032.217.194.34.123.1100536660.squirrel@wwws.franken.de> <25556.217.194.34.123.1100543413.squirrel@wwws.franken.de> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1100557521 25201 80.91.229.6 (15 Nov 2004 22:25:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2004 22:25:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 15 23:25:09 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 1CTpHY-0006NQ-00 for ; Mon, 15 Nov 2004 23:25:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTpQG-00036c-Rd for ged-emacs-devel@m.gmane.org; Mon, 15 Nov 2004 17:34:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CTpQA-00036K-6Y for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:34:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CTpQ9-000360-Ot for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:34:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTpQ9-00035x-LZ for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:34:01 -0500 Original-Received: from [69.168.110.189] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CTpHF-0002dF-Ph for emacs-devel@gnu.org; Mon, 15 Nov 2004 17:24:49 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Mon, 15 Nov 2004 22:24:32 +0000 (UTC) Original-To: "Stephan Stahl" In-reply-to: <25556.217.194.34.123.1100543413.squirrel@wwws.franken.de> (stahl@eos.franken.de) 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:29891 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29891 I'm not sure i understand what you mean. I suppose you start 'emacs --no-desktop' and have some lines in your .emacs that load/save your desktop. 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. You think those lines should not load/save your desktop when --no-desktop was specified? Yes. My understanding is that `Hairy startup options' (as the Emacs manual calls them) override .emacs files. I think it would be wrong. When i start emacs with --no-desktop then yes it should not load any saved desktop. But it does. This is one problem. I agree with you, it should not. But then later when a "desktop-save" command is issued (no matter if via M-x or .emacs) i expect emacs to do just that. 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. (Actually, the order in which you write args in a command line should not matter. In this case, the start up option should overrule the .emacs file. This provides a straightforward sequence: start up options overrule a personal .emacs file which overrules the default. But after start up, you can do anything.) If Emacs does not behave this way (or even when it does) the actions (whatever they be) should be documented in a non-confusing manner. My preference is that the `Hairy startup options' options work as I expect them to. And they be documented. -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc