Variable: clean-buffer-list-kill-regexps

clean-buffer-list-kill-regexps is a customizable variable defined in midnight.el.gz.

Value

("\\`\\*Man ")

Documentation

List of regexps saying which buffers will be killed at midnight.

If buffer name matches a regexp in the list and the buffer was not displayed in the last clean-buffer-list-delay-special seconds, it is killed by clean-buffer-list when it is in midnight-hook. If a member of the list is a cons, its car is the regexp and its cdr is the number of seconds to use instead of clean-buffer-list-delay-special. See also clean-buffer-list-kill-buffer-names, clean-buffer-list-kill-never-regexps and clean-buffer-list-kill-never-buffer-names.

Each element can also be a function instead of a regexp, in which case it takes a single argument (a buffer name) and should return non-nil if the buffer should be killed by clean-buffer-list.

Source Code

;; Defined in /usr/src/emacs/lisp/midnight.el.gz
(defcustom clean-buffer-list-kill-regexps '("\\`\\*Man ")
  "List of regexps saying which buffers will be killed at midnight.
If buffer name matches a regexp in the list and the buffer was not displayed
in the last `clean-buffer-list-delay-special' seconds, it is killed by
`clean-buffer-list' when it is in `midnight-hook'.
If a member of the list is a cons, its `car' is the regexp and its `cdr' is
the number of seconds to use instead of `clean-buffer-list-delay-special'.
See also `clean-buffer-list-kill-buffer-names',
`clean-buffer-list-kill-never-regexps' and
`clean-buffer-list-kill-never-buffer-names'.

Each element can also be a function instead of a regexp, in which case
it takes a single argument (a buffer name) and should return non-nil
if the buffer should be killed by `clean-buffer-list'."
  :type '(repeat
          (choice (regexp :tag "Regexp matching Buffer Name")
                  (function :tag "Predicate function"))))