Variable: save-some-buffers-functions

save-some-buffers-functions is a variable defined in files.el.gz.

Value

(abbrev--possibly-save)

Documentation

Functions to be run by save-some-buffers after saving the buffers.

These functions should accept one mandatory and one optional argument, and they can be called in two "modes", depending on the first argument. If the first argument is query, then the function should return non-nil if there is something to be saved (but it should not actually save anything).

If the first argument is something else, then the function should save according to the value of the second argument, which is the ARG argument with which save-some-buffers was called.

The main purpose of these functions is to save stuff that is kept in variables (rather than in buffers).

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defvar save-some-buffers-functions nil
  "Functions to be run by `save-some-buffers' after saving the buffers.
These functions should accept one mandatory and one optional
argument, and they can be called in two \"modes\", depending on
the first argument.  If the first argument is `query', then the
function should return non-nil if there is something to be
saved (but it should not actually save anything).

If the first argument is something else, then the function should
save according to the value of the second argument, which is the
ARG argument with which `save-some-buffers' was called.

The main purpose of these functions is to save stuff that is kept
in variables (rather than in buffers).")