From: Eli Zaretskii Date: Sat, 16 Apr 2022 08:41:48 +0000 (+0300) Subject: ; * lisp/window.el (display-buffer-assq-regexp): Doc fix. X-Git-Tag: emacs-29.0.90~1931^2~536 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09f905c80b1b678152ed966a4a78edc07775aa00;p=emacs.git ; * lisp/window.el (display-buffer-assq-regexp): Doc fix. --- diff --git a/lisp/window.el b/lisp/window.el index ea909955414..f3a09ee462b 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -7496,10 +7496,11 @@ all fail. It should never be set by programs or users. See (put 'display-buffer-fallback-action 'risky-local-variable t) (defun display-buffer-assq-regexp (buffer-or-name alist action) - "Retrieve ALIST entry corresponding to BUFFER-NAME. -This returns the cdr of the alist entry ALIST if key and -buffer-or-name satisfy `buffer-match-p'. ACTION should have the -form of the action argument passed to `display-buffer'." + "Retrieve ALIST entry corresponding to buffer specified by BUFFER-OR-NAME. +This returns the cdr of the alist entry ALIST if the entry's +key (its car) and BUFFER-OR-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-or-name action)