From: Alex Schroeder <alex@emacswiki.org>
Cc: emacs-devel@gnu.org
Subject: Re: desktop and misc.texi
Date: Sat, 16 Aug 2003 15:55:54 +0200 [thread overview]
Message-ID: <87r83laeqd.fsf_-_@emacswiki.org> (raw)
In-Reply-To: <3F3DDDF3.4090500@math.ku.dk> (Lars Hansen's message of "Sat, 16 Aug 2003 09:32:03 +0200")
Lars Hansen <larsh@math.ku.dk> writes:
> I agree, so pleese go ahead.
I have appended two patches, one for misc.texi and one for desktop.el.
I don't think any ChangeLog entries are required, because these are
mostly doc changes.
I also changed one (eq desktop-save 't) to (eq desktop-save t); I
think that should be harmless.
If you agree with these changes, I can commit them.
Alex.
*** misc.texi.~1.43.~ 2003-06-09 23:41:30.000000000 +0200
--- misc.texi 2003-08-16 15:50:33.000000000 +0200
***************
*** 1888,1903 ****
@example
(desktop-load-default)
(desktop-read)
@end example
@noindent
@findex desktop-save
! The first time you save the state of the Emacs session, you must do it
! manually, with the command @kbd{M-x desktop-save}. Once you have done
! that, exiting Emacs will save the state again---not only the present
! Emacs session, but also subsequent sessions. You can also save the
! state at any time, without exiting Emacs, by typing @kbd{M-x
! desktop-save} again.
In order for Emacs to recover the state from a previous session, you
must start it with the same current directory as you used when you
--- 1888,1902 ----
@example
(desktop-load-default)
(desktop-read)
+ (setq desktop-enable t)
@end example
@noindent
@findex desktop-save
! The first time you exit Emacs, you will be asked whether you want to
! save your session. Once you have done that, exiting Emacs will save
! the state again in subsequent sessions. You can also save the state
! at any time, without exiting Emacs, by typing @kbd{M-x desktop-save}.
In order for Emacs to recover the state from a previous session, you
must start it with the same current directory as you used when you
*** desktop.el.~1.58.~ 2003-06-09 23:40:37.000000000 +0200
--- desktop.el 2003-08-16 15:52:47.000000000 +0200
***************
*** 37,54 ****
;; - buffer-read-only
;; - some local variables
! ;; To use this, first put these two lines in the bottom of your .emacs
! ;; file (the later the better):
;;
;; (desktop-load-default)
;; (desktop-read)
;;
! ;; Between these two lines you may wish to add something that updates the
;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If
;; for instance you want to save the local variable `foobar' for every buffer
;; in which it is local, you could add the line
;;
! ;; (setq desktop-locals-to-save (cons 'foobar desktop-locals-to-save))
;;
;; To avoid saving excessive amounts of data you may also wish to add
;; something like the following
--- 37,54 ----
;; - buffer-read-only
;; - some local variables
! ;; To use this, add these lines in the bottom of your .emacs file:
;;
;; (desktop-load-default)
;; (desktop-read)
+ ;; (setq desktop-enable t)
;;
! ;; Between the first two lines you may wish to add something that updates the
;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If
;; for instance you want to save the local variable `foobar' for every buffer
;; in which it is local, you could add the line
;;
! ;; (add-to-list 'desktop-locals-to-save 'foobar)
;;
;; To avoid saving excessive amounts of data you may also wish to add
;; something like the following
***************
*** 397,403 ****
desktop-enable
(let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname))))
(or
! (eq desktop-save 't)
(and exists (memq desktop-save '(ask-if-new if-exists)))
(and
(or
--- 397,403 ----
desktop-enable
(let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname))))
(or
! (eq desktop-save t)
(and exists (memq desktop-save '(ask-if-new if-exists)))
(and
(or
next prev parent reply other threads:[~2003-08-16 13:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-15 23:31 desktop Alex Schroeder
2003-08-16 7:32 ` desktop Lars Hansen
2003-08-16 13:55 ` Alex Schroeder [this message]
2003-08-16 18:17 ` desktop and misc.texi 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=87r83laeqd.fsf_-_@emacswiki.org \
--to=alex@emacswiki.org \
--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.