all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: emacs-devel@gnu.org
Subject: Re: Unknown option `--no-desktop'
Date: Mon, 15 Nov 2004 22:24:32 +0000 (UTC)	[thread overview]
Message-ID: <m1CTpGy-0004QrC@rattlesnake.com> (raw)
In-Reply-To: <25556.217.194.34.123.1100543413.squirrel@wwws.franken.de> (stahl@eos.franken.de)

   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

  reply	other threads:[~2004-11-15 22:24 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 [this message]
2004-11-15 22:38         ` Stephan Stahl
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1CTpGy-0004QrC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.