Function: special-display-p

special-display-p is a byte-compiled function defined in window.el.gz.

Signature

(special-display-p BUFFER-NAME)

Documentation

Return non-nil if a buffer named BUFFER-NAME gets a special frame.

More precisely, return t if special-display-buffer-names or special-display-regexps contain a string entry equaling or matching BUFFER-NAME. If special-display-buffer-names or special-display-regexps contain a list entry whose car equals or matches BUFFER-NAME, the return value is the cdr of that entry.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun special-display-p (buffer-name)
  "Return non-nil if a buffer named BUFFER-NAME gets a special frame.
More precisely, return t if `special-display-buffer-names' or
`special-display-regexps' contain a string entry equaling or
matching BUFFER-NAME.  If `special-display-buffer-names' or
`special-display-regexps' contain a list entry whose car equals
or matches BUFFER-NAME, the return value is the cdr of that
entry."
  (let (tmp)
    (cond
     ((member buffer-name special-display-buffer-names)
      t)
     ((setq tmp (assoc buffer-name special-display-buffer-names))
      (cdr tmp))
     ((catch 'found
	(dolist (regexp special-display-regexps)
	  (cond
	   ((stringp regexp)
	    (when (string-match-p regexp buffer-name)
	      (throw 'found t)))
	   ((and (consp regexp) (stringp (car regexp))
		 (string-match-p (car regexp) buffer-name))
	    (throw 'found (cdr regexp))))))))))