unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* desktop
@ 2003-08-15 23:31 Alex Schroeder
  2003-08-16  7:32 ` desktop Lars Hansen
  0 siblings, 1 reply; 27+ messages in thread
From: Alex Schroeder @ 2003-08-15 23:31 UTC (permalink / raw)
  Cc: larsh

I'm a bit confused by desktop.el as it is in Emacs CVS.  I'm using it
without using custom.  The documentation in the info manual says that
I can enable it by using the following in my .emacs file:

     (desktop-load-default)
     (desktop-read)

All I need to do then, according to the manual, is saving it manually
once using M-x desktop-save.  This has worked very well.  Recently,
however, I get the feeling that the info in my ~/.emacs.desktop file
is read upon startup, but never updated when I quit Emacs.  Unless I
save it manually.

Testing this in a subdirectory seems to confirm this.

The reason seems to be that desktop-kill tests the value of
desktop-enable, but that variable is nil on my system.

One solution might be to set it to t, and add it to
desktop-globals-to-save when desktop-save is called...  Calling
desktop-save would then write a desktop file which sets desktop-enable
to t, making the entire thing work again.

Perhaps simpler: We could fix the documentation and the commentary to
say that we need the following setup (if Customize is not used):

     (desktop-load-default)
     (desktop-read)
     (setq desktop-enable t)

I believe that the manual is wrong on another account as well:  It
says that one manual save is required, but it is not.  If the user
does not manually save the desktop, then Emacs will ask the user when
Emacs is killed whether the desktop should be saved.  Which is just
fine, I think.

If you agree with this, then I can change the documentation as
proposed.

Alex.
-- 
http://www.emacswiki.org/alex/
There is no substitute for experience.

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

end of thread, other threads:[~2003-08-25 15:21 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 23:31 desktop Alex Schroeder
2003-08-16  7:32 ` desktop Lars Hansen
2003-08-16 13:55   ` desktop and misc.texi Alex Schroeder
2003-08-16 18:17     ` Lars Hansen
2003-08-18  4:52   ` desktop Richard Stallman
2003-08-18  9:33     ` desktop Lars Hansen
2003-08-18 10:05     ` desktop Miles Bader
2003-08-18 15:53       ` desktop Alex Schroeder
2003-08-19  6:23         ` desktop Miles Bader
2003-08-19  8:45           ` desktop Lars Hansen
2003-08-20  2:43             ` desktop Richard Stallman
2003-08-20  7:46               ` desktop Lars Hansen
2003-08-20 10:24                 ` desktop Alex Schroeder
2003-08-21 14:11                 ` desktop Richard Stallman
2003-08-21 17:55                   ` desktop Lars Hansen
2003-08-21 21:59                     ` desktop Alex Schroeder
2003-08-23  3:59                     ` desktop Richard Stallman
2003-08-24 13:43                       ` desktop Lars Hansen
2003-08-24  0:09                     ` desktop Richard Stallman
2003-08-24  6:01                       ` desktop Lars Hansen
2003-08-24 19:59                         ` desktop Alex Schroeder
2003-08-25  6:03                           ` desktop Lars Hansen
2003-08-25 15:21                           ` desktop Richard Stallman
2003-08-25  3:29                         ` desktop Richard Stallman
2003-08-25  6:05                           ` desktop Lars Hansen
2003-08-18 11:34     ` desktop Alex Schroeder
2003-08-19  5:58       ` desktop Richard Stallman

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