Variable: desktop-files-not-to-save
desktop-files-not-to-save is a customizable variable defined in
desktop.el.gz.
Value
"\\(\\`/[^/:]*:\\|(ftp)\\'\\)"
Documentation
Regexp identifying files whose buffers are to be excluded from saving.
The default value excludes buffers visiting remote files.
If you modify this such that buffers visiting remote files are not excluded,
you may wish customizing remote-file-name-access-timeout to a non-nil
value, to avoid hanging the desktop restoration because some remote
host is off-line.
Probably introduced at or before Emacs version 23.2.
Source Code
;; Defined in /usr/src/emacs/lisp/desktop.el.gz
;; Skip tramp and ange-ftp files
(defcustom desktop-files-not-to-save
"\\(\\`/[^/:]*:\\|(ftp)\\'\\)"
"Regexp identifying files whose buffers are to be excluded from saving.
The default value excludes buffers visiting remote files.
If you modify this such that buffers visiting remote files are not excluded,
you may wish customizing `remote-file-name-access-timeout' to a non-nil
value, to avoid hanging the desktop restoration because some remote
host is off-line."
:type '(choice (const :tag "None" nil)
regexp)
:group 'desktop)