diff options
| author | Juanma Barranquero | 2005-07-29 10:25:15 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-07-29 10:25:15 +0000 |
| commit | b89c5a722e907c5182cd0c87c9a7b3abfd67a077 (patch) | |
| tree | 486ddd2221134d783862527425bc90baa8b75a61 | |
| parent | dfc434d050312cbeaa5b3917e56fb82165b1af1e (diff) | |
| download | emacs-b89c5a722e907c5182cd0c87c9a7b3abfd67a077.tar.gz emacs-b89c5a722e907c5182cd0c87c9a7b3abfd67a077.zip | |
(desktop-save-buffer): Fix typos in docstring.
(desktop-load-default): Simplify.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/desktop.el | 22 |
2 files changed, 17 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6b30a3f9152..caa578b253b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-07-29 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * desktop.el (desktop-save-buffer): Fix typos in docstring. | ||
| 4 | (desktop-load-default): Simplify. | ||
| 5 | |||
| 1 | 2005-07-29 Kenichi Handa <handa@m17n.org> | 6 | 2005-07-29 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/mule-cmds.el (select-message-coding-system): Be | 8 | * international/mule-cmds.el (select-message-coding-system): Be |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 1debc6d9c62..0018780d5d5 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -106,7 +106,8 @@ desktop is saved." | |||
| 106 | :group 'desktop) | 106 | :group 'desktop) |
| 107 | 107 | ||
| 108 | ;; Maintained for backward compatibility | 108 | ;; Maintained for backward compatibility |
| 109 | (define-obsolete-variable-alias 'desktop-enable 'desktop-save-mode "22.1") | 109 | (define-obsolete-variable-alias 'desktop-enable |
| 110 | 'desktop-save-mode "22.1") | ||
| 110 | 111 | ||
| 111 | (defcustom desktop-save 'ask-if-new | 112 | (defcustom desktop-save 'ask-if-new |
| 112 | "*Specifies whether the desktop should be saved when it is killed. | 113 | "*Specifies whether the desktop should be saved when it is killed. |
| @@ -136,7 +137,8 @@ determine where the desktop is saved." | |||
| 136 | "Name of file for Emacs desktop, excluding the directory part." | 137 | "Name of file for Emacs desktop, excluding the directory part." |
| 137 | :type 'file | 138 | :type 'file |
| 138 | :group 'desktop) | 139 | :group 'desktop) |
| 139 | (define-obsolete-variable-alias 'desktop-basefilename 'desktop-base-file-name "22.1") | 140 | (define-obsolete-variable-alias 'desktop-basefilename |
| 141 | 'desktop-base-file-name "22.1") | ||
| 140 | 142 | ||
| 141 | (defcustom desktop-path '("." "~") | 143 | (defcustom desktop-path '("." "~") |
| 142 | "List of directories to search for the desktop file. | 144 | "List of directories to search for the desktop file. |
| @@ -292,8 +294,8 @@ See `desktop-restore-eager'." | |||
| 292 | "When non-nil, save buffer status in desktop file. | 294 | "When non-nil, save buffer status in desktop file. |
| 293 | This variable becomes buffer local when set. | 295 | This variable becomes buffer local when set. |
| 294 | 296 | ||
| 295 | If the value is a function, it called by `desktop-save' with argument | 297 | If the value is a function, it is called by `desktop-save' with argument |
| 296 | DESKTOP-DIRNAME to obtain auxiliary information to saved in the desktop | 298 | DESKTOP-DIRNAME to obtain auxiliary information to save in the desktop |
| 297 | file along with the state of the buffer for which it was called. | 299 | file along with the state of the buffer for which it was called. |
| 298 | 300 | ||
| 299 | When file names are returned, they should be formatted using the call | 301 | When file names are returned, they should be formatted using the call |
| @@ -776,11 +778,11 @@ It returns t if a desktop file was loaded, nil otherwise." | |||
| 776 | (defun desktop-load-default () | 778 | (defun desktop-load-default () |
| 777 | "Load the `default' start-up library manually. | 779 | "Load the `default' start-up library manually. |
| 778 | Also inhibit further loading of it." | 780 | Also inhibit further loading of it." |
| 779 | (if (not inhibit-default-init) ; safety check | 781 | (unless inhibit-default-init ; safety check |
| 780 | (progn | 782 | (load "default" t t) |
| 781 | (load "default" t t) | 783 | (setq inhibit-default-init t))) |
| 782 | (setq inhibit-default-init t)))) | 784 | (make-obsolete 'desktop-load-default |
| 783 | (make-obsolete 'desktop-load-default 'desktop-save-mode "22.1") | 785 | 'desktop-save-mode "22.1") |
| 784 | 786 | ||
| 785 | ;; ---------------------------------------------------------------------------- | 787 | ;; ---------------------------------------------------------------------------- |
| 786 | ;;;###autoload | 788 | ;;;###autoload |
| @@ -801,7 +803,7 @@ directory DIRNAME." | |||
| 801 | "Save the desktop in directory `desktop-dirname'." | 803 | "Save the desktop in directory `desktop-dirname'." |
| 802 | (interactive) | 804 | (interactive) |
| 803 | (if desktop-dirname | 805 | (if desktop-dirname |
| 804 | (desktop-save desktop-dirname) | 806 | (desktop-save desktop-dirname) |
| 805 | (call-interactively 'desktop-save)) | 807 | (call-interactively 'desktop-save)) |
| 806 | (message "Desktop saved in %s" desktop-dirname)) | 808 | (message "Desktop saved in %s" desktop-dirname)) |
| 807 | 809 | ||