From 09f905c80b1b678152ed966a4a78edc07775aa00 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 16 Apr 2022 11:41:48 +0300 Subject: [PATCH] ; * lisp/window.el (display-buffer-assq-regexp): Doc fix. --- lisp/window.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) -- 2.39.5