Function: auto-save-file-name-p
auto-save-file-name-p is a byte-compiled function defined in
files.el.gz.
Signature
(auto-save-file-name-p FILENAME)
Documentation
Return non-nil if FILENAME can be yielded by make-auto-save-file-name.
FILENAME should lack slashes.
See also make-auto-save-file-name.
Probably introduced at or before Emacs version 16.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun auto-save-file-name-p (filename)
"Return non-nil if FILENAME can be yielded by `make-auto-save-file-name'.
FILENAME should lack slashes.
See also `make-auto-save-file-name'."
(string-match "\\`#.*#\\'" filename))