From: "Robert J. Chassell" <bob@rattlesnake.com>
Subject: Re: Unknown option `--no-desktop'
Date: Tue, 16 Nov 2004 13:47:14 +0000 (UTC) [thread overview]
Message-ID: <m1CU3fu-0004RhC@rattlesnake.com> (raw)
In-Reply-To: <57659.194.95.226.87.1100558339.squirrel@wwws.franken.de> (stahl@eos.franken.de)
"Stephan Stahl" <stahl@eos.franken.de> said
... 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. ...
This is so I can avoid using the desktop with specifically named
instances of Emacs. Here is what I say in my .emacs file:
;; Do not use desktop-save-mode for Short or Experimental Emacs:
(if (or
(string= (cdr (assq 'name (frame-parameters))) "Bobs Short Emacs")
(string= (cdr (assq 'name (frame-parameters))) "Experimental Emacs"))
(desktop-save-mode 0)
(desktop-save-mode 1))
Here is my proposal for how the start up option should work:
1. Emacs started with emacs -Q --no-desktop
-- Do not start a desktop, since there is none; do nothing.
-- _Also_,
do not say "Unknown option `--no-desktop'"
but do nothing since the initial option should be recognized
as having nothing to work on.
2. Emacs started with emacs --no-desktop
and with a .emacs file that says (desktop-save-mode 1)
(and no desktop function called during session)
-- Do not start the desktop
-- Do not save a desktop when this instance of Emacs is ended
3. Emacs started with emacs --no-desktop
and with a .emacs file that says (desktop-save-mode 1)
but a desktop function is called during the session
after this instance of Emacs has started
-- Do whatever the desktop function says
4. Emacs started with emacs --no-desktop
and with a .emacs file that says (desktop-read "/user")
-- Do not start the desktop
-- If a desktop function is called during the session,
do whatever it says.
A key question is whether the single option --no-desktop should do two
different actions, in effect, combine two different options:
* --no-desktop-read: prevent starting a desktop when an instance of
Emacs starts,
but permitting a save when the .emacs file says
(desktop-save-mode 1)
* --no-desktop-save: prevent saving a desktop when an instance of
Emacs ends,
but permitting a pre-existing desktop to be read,
and not changing it during the session, when the .emacs file says
(desktop-save-mode 1)
I think there should be just the one option --no-desktop and it should
do both actions. Morover the one option should apply only to the
start up. If you call a desktop function when running, then that
should take effect, just as your .emacs file gets loaded if you load
your .emacs after starting with `emacs -Q'.
Under no circumstances should the message
Unknown option `--no-desktop'
appear, as it does with this morning's CVS, of Tue, 2004 Nov 16 12:52
UTC, GNU Emacs 21.3.50.7 (i686-pc-linux-gnu, GTK+ Version 2.4.13)
started with
emacs -Q --no-desktop
--
Robert J. Chassell
bob@rattlesnake.com GnuPG Key ID: 004B4AC8
http://www.rattlesnake.com http://www.teak.cc
prev parent reply other threads:[~2004-11-16 13:47 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
2004-11-16 13:47 ` Robert J. Chassell [this message]
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=m1CU3fu-0004RhC@rattlesnake.com \
--to=bob@rattlesnake.com \
/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).