GNU bug report logs -
#69983
Use category for display-buffer-alist
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 24 Mar 2024 17:22:01 UTC
Severity: normal
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 69983 <at> debbugs.gnu.org (full text, mbox):
>> Ok, but before proceeding I propose the following change.
>
> Would this imply a change in 'buffer-match-p'?
Indeed, here it a simple change in 'buffer-match-p'
that will support this case:
(add-to-list 'display-buffer-alist
`((category . comint)
(display-buffer-in-direction)
(direction . top)))
(display-buffer (get-buffer-create "blablabla")
'(nil (category . comint)))
diff --git a/lisp/subr.el b/lisp/subr.el
index b68aa073ba0..2d104c545f0 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -7502,6 +7502,8 @@ buffer-match-p
(push condition buffer-match-p--past-warnings))
(apply condition buffer-or-name
(if args nil '(nil)))))))
+ (`(category . ,category)
+ (eq (alist-get 'category (car args)) category))
(`(major-mode . ,mode)
(eq
(buffer-local-value 'major-mode buffer)
This bug report was last modified 1 year and 83 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.