Function: backup-file-name-p

backup-file-name-p is a byte-compiled function defined in files.el.gz.

Signature

(backup-file-name-p FILE)

Documentation

Return non-nil if FILE is a backup file name (numeric or not).

This is a separate function so you can redefine it for customization. You may need to redefine file-name-sans-versions as well.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun backup-file-name-p (file)
  "Return non-nil if FILE is a backup file name (numeric or not).
This is a separate function so you can redefine it for customization.
You may need to redefine `file-name-sans-versions' as well."
    (string-match "~\\'" file))