mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/desktop.el (desktop-save): Doc fix. (Bug#41007)
This commit is contained in:
parent
fc8e02a4d5
commit
5a5d8a8ec0
1 changed files with 24 additions and 15 deletions
|
|
@ -1017,13 +1017,16 @@ Frames with a non-nil `desktop-dont-save' parameter are not saved."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun desktop-save (dirname &optional release only-if-changed version)
|
(defun desktop-save (dirname &optional release only-if-changed version)
|
||||||
"Save the desktop in a desktop file.
|
"Save the state of Emacs in a desktop file in directory DIRNAME.
|
||||||
Parameter DIRNAME specifies where to save the desktop file.
|
Optional argument RELEASE non-nil says we're done with this
|
||||||
Optional parameter RELEASE says whether we're done with this
|
desktop, in which case this function releases the lock of the
|
||||||
desktop. If ONLY-IF-CHANGED is non-nil, compare the current
|
desktop file in DIRNAME.
|
||||||
desktop information to that in the desktop file, and if the
|
If ONLY-IF-CHANGED is non-nil, compare the current desktop
|
||||||
desktop information has not changed since it was last saved then
|
information to that in the desktop file, and if the desktop
|
||||||
do not rewrite the file.
|
information has not changed since it was last saved, then do
|
||||||
|
not rewrite the file.
|
||||||
|
|
||||||
|
To restore the desktop, use `desktop-read'.
|
||||||
|
|
||||||
This function can save the desktop in either format version
|
This function can save the desktop in either format version
|
||||||
208 (which only Emacs 25.1 and later can read) or version
|
208 (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
|
||||||
file.
|
file.
|
||||||
|
|
||||||
To upgrade a version 206 file to version 208, call this command
|
To upgrade a version 206 file to version 208, call this command
|
||||||
explicitly with a bare prefix argument: C-u M-x desktop-save.
|
explicitly with a prefix argument: \\[universal-argument] \\[desktop-save].
|
||||||
You are recommended to do this once you have firmly upgraded to
|
If you are upgrading from Emacs 24 or older, we recommed to do
|
||||||
Emacs 25.1 (or later). To downgrade a version 208 file to version
|
this once you decide you no longer need compatibility with versions
|
||||||
206, use a double command prefix: C-u C-u M-x desktop-save.
|
of Emacs before 25.1.
|
||||||
Confirmation will be requested in either case. In a non-interactive
|
|
||||||
call, VERSION can be given as an integer, either 206 or 208, which
|
To downgrade a version 208 file to version 206, use a double prefix
|
||||||
will be accepted as the format version in which to save the file
|
argument: \\[universal-argument] \\[universal-argument] \\[desktop-save].
|
||||||
without further confirmation."
|
|
||||||
|
Emacs will ask for confirmation when you upgrade or downgrade your
|
||||||
|
desktop file.
|
||||||
|
|
||||||
|
In a non-interactive call, VERSION can be given as an integer, either
|
||||||
|
206 or 208, to specify the format version in which to save the file,
|
||||||
|
no questions asked."
|
||||||
(interactive (list
|
(interactive (list
|
||||||
;; Or should we just use (car desktop-path)?
|
;; Or should we just use (car desktop-path)?
|
||||||
(let ((default (if (member "." desktop-path)
|
(let ((default (if (member "." desktop-path)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue