Document 'desktop-files-not-to-save'

* doc/emacs/misc.texi (Saving Emacs Sessions): Add description
of 'desktop-files-not-to-save'.

* lisp/desktop.el (desktop-files-not-to-save): Explain that
the default value excludes buffers visiting remote files.
This commit is contained in:
Robert Pluim 2018-02-17 13:01:19 +02:00 committed by Eli Zaretskii
parent d8917eba1c
commit f21f8e6135
2 changed files with 7 additions and 1 deletions

View file

@ -2434,6 +2434,11 @@ To disable this, set @code{desktop-restore-frames} to @code{nil}.
(See that variable's documentation for some related options (See that variable's documentation for some related options
that you can customize to fine-tune this behavior.) that you can customize to fine-tune this behavior.)
@vindex desktop-files-not-to-save
Information about buffers visiting remote files is not saved by
default. Customize the variable @code{desktop-files-not-to-save} to
change this.
@vindex frameset-filter-alist @vindex frameset-filter-alist
When the desktop restores the frame and window configuration, it When the desktop restores the frame and window configuration, it
uses the recorded values of frame parameters, disregarding any uses the recorded values of frame parameters, disregarding any

View file

@ -393,7 +393,8 @@ or `desktop-modes-not-to-save'."
;; Skip tramp and ange-ftp files ;; Skip tramp and ange-ftp files
(defcustom desktop-files-not-to-save (defcustom desktop-files-not-to-save
"\\(^/[^/:]*:\\|(ftp)$\\)" "\\(^/[^/:]*:\\|(ftp)$\\)"
"Regexp identifying files whose buffers are to be excluded from saving." "Regexp identifying files whose buffers are to be excluded from saving.
The default value excludes buffers visiting remote files."
:type '(choice (const :tag "None" nil) :type '(choice (const :tag "None" nil)
regexp) regexp)
:group 'desktop) :group 'desktop)