Variable: desktop-clear-preserve-buffers

desktop-clear-preserve-buffers is a customizable variable defined in desktop.el.gz.

Value

("\\*scratch\\*" "\\*Messages\\*" "\\*server\\*" "\\*tramp/.+\\*"
 "\\*Warnings\\*")

Documentation

List of buffers that desktop-clear should not delete.

Each element is a regular expression. Buffers with a name matched by any of these won't be deleted.

This variable was added, or its default value changed, in Emacs 23.3.

Source Code

;; Defined in /usr/src/emacs/lisp/desktop.el.gz
(defcustom desktop-clear-preserve-buffers
  '("\\*scratch\\*" "\\*Messages\\*" "\\*server\\*" "\\*tramp/.+\\*"
    "\\*Warnings\\*")
  "List of buffers that `desktop-clear' should not delete.
Each element is a regular expression.  Buffers with a name matched by any of
these won't be deleted."
  :version "23.3"                       ; added Warnings - bug#6336
  :type '(repeat regexp))