comparison lisp/desktop.el @ 52217:2261bea7f3b6

Commentary change. (desktop-kill): Unquoted t.
author Alex Schroeder <alex@gnu.org>
date Sun, 17 Aug 2003 09:32:10 +0000
parents 4dafe305a193
children 541533296a1d
comparison
equal deleted inserted replaced
52216:9c9f228688f7 52217:2261bea7f3b6
35 ;; - the point 35 ;; - the point
36 ;; - the mark & mark-active 36 ;; - the mark & mark-active
37 ;; - buffer-read-only 37 ;; - buffer-read-only
38 ;; - some local variables 38 ;; - some local variables
39 39
40 ;; To use this, first put these two lines in the bottom of your .emacs 40 ;; To use this, add these lines in the bottom of your .emacs file:
41 ;; file (the later the better):
42 ;; 41 ;;
43 ;; (desktop-load-default) 42 ;; (desktop-load-default)
44 ;; (desktop-read) 43 ;; (desktop-read)
44 ;; (setq desktop-enable t)
45 ;; 45 ;;
46 ;; Between these two lines you may wish to add something that updates the 46 ;; Between the first two lines you may wish to add something that updates the
47 ;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If 47 ;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If
48 ;; for instance you want to save the local variable `foobar' for every buffer 48 ;; for instance you want to save the local variable `foobar' for every buffer
49 ;; in which it is local, you could add the line 49 ;; in which it is local, you could add the line
50 ;; 50 ;;
51 ;; (setq desktop-locals-to-save (cons 'foobar desktop-locals-to-save)) 51 ;; (add-to-list 'desktop-locals-to-save 'foobar)
52 ;; 52 ;;
53 ;; To avoid saving excessive amounts of data you may also wish to add 53 ;; To avoid saving excessive amounts of data you may also wish to add
54 ;; something like the following 54 ;; something like the following
55 ;; 55 ;;
56 ;; (add-hook 'kill-emacs-hook 56 ;; (add-hook 'kill-emacs-hook
395 (when 395 (when
396 (and 396 (and
397 desktop-enable 397 desktop-enable
398 (let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname)))) 398 (let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname))))
399 (or 399 (or
400 (eq desktop-save 't) 400 (eq desktop-save t)
401 (and exists (memq desktop-save '(ask-if-new if-exists))) 401 (and exists (memq desktop-save '(ask-if-new if-exists)))
402 (and 402 (and
403 (or 403 (or
404 (memq desktop-save '(ask ask-if-new)) 404 (memq desktop-save '(ask ask-if-new))
405 (and exists (eq desktop-save 'ask-if-exists))) 405 (and exists (eq desktop-save 'ask-if-exists)))