Function: server-temp-file-p

server-temp-file-p is a byte-compiled function defined in server.el.gz.

Signature

(server-temp-file-p &optional BUFFER)

Documentation

Return non-nil if BUFFER contains a file considered temporary.

These are files whose names suggest they are repeatedly reused to pass information to another program.

The variable server-temp-file-regexp controls which filenames are considered temporary.

Source Code

;; Defined in /usr/src/emacs/lisp/server.el.gz
(defun server-temp-file-p (&optional buffer)
  "Return non-nil if BUFFER contains a file considered temporary.
These are files whose names suggest they are repeatedly
reused to pass information to another program.

The variable `server-temp-file-regexp' controls which filenames
are considered temporary."
  (and (buffer-file-name buffer)
       (string-match-p server-temp-file-regexp (buffer-file-name buffer))))