Variable: save-some-buffers-default-predicate

save-some-buffers-default-predicate is a customizable variable defined in files.el.gz.

Value

nil

Documentation

Default predicate for save-some-buffers.

This allows you to stop save-some-buffers from asking about certain files that you'd usually rather not save.

This function is called (with no parameters) from the buffer to be saved. When the function's symbol has the property save-some-buffers-function, the higher-order function is supposed to return a predicate used to check buffers.

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

View in manual

Probably introduced at or before Emacs version 26.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defcustom save-some-buffers-default-predicate nil
  "Default predicate for `save-some-buffers'.

This allows you to stop `save-some-buffers' from asking
about certain files that you'd usually rather not save.

This function is called (with no parameters) from the buffer to
be saved.  When the function's symbol has the property
`save-some-buffers-function', the higher-order function is supposed
to return a predicate used to check buffers."
  :group 'auto-save
  ;; FIXME nil should not be a valid option, let alone the default,
  ;; eg so that add-function can be used.
  :type '(choice (const :tag "Default" nil)
                 (function :tag "Only in subdirs of current project"
                           save-some-buffers-root)
                 (function :tag "Custom function"))
  :version "26.1")