GNU bug report logs - #69983
Use category for display-buffer-alist

Previous Next

Package: emacs;

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 #44 received at 69983 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 69983 <at> debbugs.gnu.org
Subject: Re: bug#69983: Use category for display-buffer-alist
Date: Sat, 30 Mar 2024 20:22:36 +0200
>>> But if so, you should say that this works only
>>> when called from 'display-buffer'.
>>
>> This already says so:
> ...
>> +  * `category': the buffer matches a category as a symbol if
>> +    the caller of `display-buffer' provides `(category . symbol)'
>> +    in its action argument.
> ...
>
> I was never really fond of using 'buffer-match-p' for 'display-buffer'.
> This is an example why.  A caller of 'buffer-match-p' who does not know
> about 'display-buffer' has to care about whether the CONDITION passed to
> it contains a 'category' element.

A caller of 'buffer-match-p' does not need to care about 'category'.
Only a user who customizes 'display-buffer-alist' needs to care about 'category'.




This bug report was last modified 1 year and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.