From: "Stephan Stahl" <stahl@eos.franken.de>
Cc: Stephan Stahl <stahl@eos.franken.de>, emacs-devel@gnu.org
Subject: Re: Unknown option `--no-desktop'
Date: Mon, 15 Nov 2004 23:38:59 +0100 (CET) [thread overview]
Message-ID: <57659.194.95.226.87.1100558339.squirrel@wwws.franken.de> (raw)
In-Reply-To: <m1CTpGy-0004QrC@rattlesnake.com>
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
next prev parent reply other threads:[~2004-11-15 22:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 16:14 Unknown option `--no-desktop' Robert J. Chassell
2004-11-15 16:37 ` Stephan Stahl
2004-11-15 17:55 ` Robert J. Chassell
2004-11-15 18:30 ` Stephan Stahl
2004-11-15 22:24 ` Robert J. Chassell
2004-11-15 22:38 ` Stephan Stahl [this message]
2004-11-16 13:47 ` Robert J. Chassell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57659.194.95.226.87.1100558339.squirrel@wwws.franken.de \
--to=stahl@eos.franken.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).