unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephan Stahl" <stahl@eos.franken.de>
Subject: desktop.el not playing nice
Date: Sun, 17 Apr 2005 16:46:38 +0200 (CEST)	[thread overview]
Message-ID: <40781.194.95.226.87.1113749198.squirrel@wwws.franken.de> (raw)

Hi.

I found that info/emacs-5 is not totaly clear about desktop.el

Currently is says:

----------
   You can save the desktop manually with the command `M-x
desktop-save'.  You can also enable automatic desktop saving when you
exit Emacs: use the Customization buffer (*note Easy Customization::)
to set `desktop-save-mode' to `t' for future sessions, or add this line
in your `~/.emacs' file:

     (desktop-save-mode 1)

   When Emacs starts, it looks for a saved desktop in the current
directory.  Thus, you can have separate saved desktops in different
directories, and the starting directory determines which one Emacs
reloads.  You can save the current desktop and reload one saved in
another directory by typing `M-x desktop-change-dir'.  Typing `M-x
desktop-revert' reverts to the desktop previously reloaded.

   Specify the option `--no-desktop' on the command line when you don't
want it to reload any saved desktop.
----------

Emacs only loads the saved desktop on startup when

(desktop-save-mode 1)

is in .emacs.  Or desktop.el is loaded somehow before after-init-hook
is run.

When that is the case and i start emacs with --no-desktop it seems
clear to me that i do not want to USE or ALTER the saved desktop.
However when i try to exit emacs i get asked where the desktop file
should be saved.  I can not exit emacs without this step unless i
disable desktop-save-mode.  This seems wrong to me because i said
--no-desktop and saving could overwrite my old desktop file.  I work
around this by starting

emacs --no-desktop --eval "(customize-set-variable 'desktop-enable nil)"

but this seems like a pitfall for emacs starters.  Maybe --no-desktop
should disable desktop-save-mode?

What do others think?
-- 
Stephan Stahl

             reply	other threads:[~2005-04-17 14:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-17 14:46 Stephan Stahl [this message]
2005-04-17 15:07 ` desktop.el not playing nice David Kastrup
2005-04-17 16:24 ` Robert J. Chassell
2005-04-18 13:56   ` Richard Stallman
2005-04-18 18:16     ` Stephan Stahl
2005-04-18 18:54       ` Lars Hansen
2005-04-17 21:06 ` Lars Hansen
2005-04-17 21:22   ` David Kastrup
2005-04-17 21:36     ` Lennart Borgman
2005-04-18 18:42     ` Lars Hansen
2005-04-18 21:06   ` Richard Stallman
2005-04-18 21:23     ` Stephan Stahl
2005-04-18 18:36 ` Lars Hansen

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=40781.194.95.226.87.1113749198.squirrel@wwws.franken.de \
    --to=stahl@eos.franken.de \
    /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).