aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-05-01 22:59:27 +0300
committerEli Zaretskii2020-05-01 22:59:27 +0300
commit5a5d8a8ec0610aa4b26011ebae434bcf3e11c993 (patch)
treea869dd964c6b23b0c874bc1b44f2a7928c6c5fd1
parentfc8e02a4d5ed87f53215d3ffff3b35ff650b0176 (diff)
downloademacs-5a5d8a8ec0610aa4b26011ebae434bcf3e11c993.tar.gz
emacs-5a5d8a8ec0610aa4b26011ebae434bcf3e11c993.zip
* lisp/desktop.el (desktop-save): Doc fix. (Bug#41007)
-rw-r--r--lisp/desktop.el39
1 files changed, 24 insertions, 15 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 7745b50b64c..b15ebc9b031 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1017,13 +1017,16 @@ Frames with a non-nil `desktop-dont-save' parameter are not saved."
1017 1017
1018;;;###autoload 1018;;;###autoload
1019(defun desktop-save (dirname &optional release only-if-changed version) 1019(defun desktop-save (dirname &optional release only-if-changed version)
1020 "Save the desktop in a desktop file. 1020 "Save the state of Emacs in a desktop file in directory DIRNAME.
1021Parameter DIRNAME specifies where to save the desktop file. 1021Optional argument RELEASE non-nil says we're done with this
1022Optional parameter RELEASE says whether we're done with this 1022desktop, in which case this function releases the lock of the
1023desktop. If ONLY-IF-CHANGED is non-nil, compare the current 1023desktop file in DIRNAME.
1024desktop information to that in the desktop file, and if the 1024If ONLY-IF-CHANGED is non-nil, compare the current desktop
1025desktop information has not changed since it was last saved then 1025information to that in the desktop file, and if the desktop
1026do not rewrite the file. 1026information has not changed since it was last saved, then do
1027not rewrite the file.
1028
1029To restore the desktop, use `desktop-read'.
1027 1030
1028This function can save the desktop in either format version 1031This function can save the desktop in either format version
1029208 (which only Emacs 25.1 and later can read) or version 1032208 (which only Emacs 25.1 and later can read) or version
@@ -1033,14 +1036,20 @@ it was last saved, or version 208 when writing a fresh desktop
1033file. 1036file.
1034 1037
1035To upgrade a version 206 file to version 208, call this command 1038To upgrade a version 206 file to version 208, call this command
1036explicitly with a bare prefix argument: C-u M-x desktop-save. 1039explicitly with a prefix argument: \\[universal-argument] \\[desktop-save].
1037You are recommended to do this once you have firmly upgraded to 1040If you are upgrading from Emacs 24 or older, we recommed to do
1038Emacs 25.1 (or later). To downgrade a version 208 file to version 1041this once you decide you no longer need compatibility with versions
1039206, use a double command prefix: C-u C-u M-x desktop-save. 1042of Emacs before 25.1.
1040Confirmation will be requested in either case. In a non-interactive 1043
1041call, VERSION can be given as an integer, either 206 or 208, which 1044To downgrade a version 208 file to version 206, use a double prefix
1042will be accepted as the format version in which to save the file 1045argument: \\[universal-argument] \\[universal-argument] \\[desktop-save].
1043without further confirmation." 1046
1047Emacs will ask for confirmation when you upgrade or downgrade your
1048desktop file.
1049
1050In a non-interactive call, VERSION can be given as an integer, either
1051206 or 208, to specify the format version in which to save the file,
1052no questions asked."
1044 (interactive (list 1053 (interactive (list
1045 ;; Or should we just use (car desktop-path)? 1054 ;; Or should we just use (car desktop-path)?
1046 (let ((default (if (member "." desktop-path) 1055 (let ((default (if (member "." desktop-path)