unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* desktop.el not playing nice
@ 2005-04-17 14:46 Stephan Stahl
  2005-04-17 15:07 ` David Kastrup
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Stephan Stahl @ 2005-04-17 14:46 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-04-18 21:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 14:46 desktop.el not playing nice Stephan Stahl
2005-04-17 15:07 ` 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

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).