Function: display-buffer-assq-regexp
display-buffer-assq-regexp is a byte-compiled function defined in
window.el.gz.
Signature
(display-buffer-assq-regexp BUFFER-NAME ALIST ACTION)
Documentation
Retrieve ALIST entry corresponding to buffer whose name is BUFFER-NAME.
This returns the cdr of the alist entry ALIST if the entry's
key (its car) and the name of the buffer designated by
BUFFER-NAME satisfy buffer-match-p, using the key as
CONDITION argument of buffer-match-p. ACTION should have the
form of the action argument passed to display-buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun display-buffer-assq-regexp (buffer-name alist action)
"Retrieve ALIST entry corresponding to buffer whose name is BUFFER-NAME.
This returns the cdr of the alist entry ALIST if the entry's
key (its car) and the name of the buffer designated by
BUFFER-NAME satisfy `buffer-match-p', using the key as
CONDITION argument of `buffer-match-p'. ACTION should have the
form of the action argument passed to `display-buffer'."
(catch 'match
(dolist (entry alist)
(when (buffer-match-p (car entry) buffer-name action)
(throw 'match (cdr entry))))))