all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@emacswiki.org>
Cc: larsh@math.ku.dk
Subject: desktop
Date: Sat, 16 Aug 2003 01:31:51 +0200	[thread overview]
Message-ID: <87ekzmsdjs.fsf@emacswiki.org> (raw)

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.

             reply	other threads:[~2003-08-15 23:31 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-15 23:31 Alex Schroeder [this message]
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

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=87ekzmsdjs.fsf@emacswiki.org \
    --to=alex@emacswiki.org \
    --cc=larsh@math.ku.dk \
    /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.