Function: buffer-stale--default-function
buffer-stale--default-function is a byte-compiled function defined in
files.el.gz.
Signature
(buffer-stale--default-function &optional NOCONFIRM)
Documentation
Default function to use for buffer-stale-function.
This function ignores its argument. This returns non-nil if the current buffer is visiting a readable file whose modification time does not match that of the buffer.
This function handles only buffers that are visiting files. Non-file buffers need a custom function.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun buffer-stale--default-function (&optional _noconfirm)
"Default function to use for `buffer-stale-function'.
This function ignores its argument.
This returns non-nil if the current buffer is visiting a readable file
whose modification time does not match that of the buffer.
This function handles only buffers that are visiting files.
Non-file buffers need a custom function."
(and buffer-file-name
(file-readable-p buffer-file-name)
(not (buffer-modified-p (current-buffer)))
(not (verify-visited-file-modtime (current-buffer)))))