Function: zone--buffer-zoneable-p
zone--buffer-zoneable-p is a byte-compiled function defined in
zone.el.gz.
Signature
(zone--buffer-zoneable-p BUFFER)
Documentation
Is BUFFER suitable for zoning? For example, buffers containing passwords, critical source files, and command line transcripts might not be appropriate for a zone buffer.
To be acceptable, the buffer must NOT satisfy any of the entries on
zone-ignored-buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/play/zone.el.gz
(defun zone--buffer-zoneable-p (buffer)
"Is BUFFER suitable for zoning?
For example, buffers containing passwords, critical source files, and
command line transcripts might not be appropriate for a zone buffer.
To be acceptable, the buffer must NOT satisfy any of the entries on
`zone-ignored-buffers'."
(not (any
(lambda (ign)
(cond
((stringp ign)
(string-match-p ign (buffer-name buffer)))
((and (symbolp ign)
(string-suffix-p "-mode" (symbol-name ign)))
(with-current-buffer buffer
(derived-mode-p ign)))
((functionp ign)
(funcall ign buffer))))
zone-ignored-buffers)))