From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#69983: Use category for display-buffer-alist Date: Sat, 30 Mar 2024 20:22:36 +0200 Organization: LINKOV.NET Message-ID: <86frw7d2xf.fsf@mail.linkov.net> References: <86h6gv7e0z.fsf@mail.linkov.net> <3e7b8e64-0a5f-4888-a443-9c69a5fffd98@gmx.at> <86bk72dze6.fsf@mail.linkov.net> <69163329-d756-4747-9496-dd59e3c61c83@gmx.at> <86bk7040vo.fsf@mail.linkov.net> <86cyrevniu.fsf@mail.linkov.net> <86y1a2cv6s.fsf@mail.linkov.net> <6d19927f-0ec9-425e-8e5e-4c0102682fae@gmx.at> <868r21hvdc.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 69983@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 19:25:50 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rqdOm-0005Yx-7R for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 19:25:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqdO3-00014f-BO; Sat, 30 Mar 2024 14:25:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqdO1-00013i-BV for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 14:25:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqdO1-0000tT-2s for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 14:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqdO3-0006UD-3R for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 14:25:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2024 18:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69983 X-GNU-PR-Package: emacs Original-Received: via spool by 69983-submit@debbugs.gnu.org id=B69983.171182309724886 (code B ref 69983); Sat, 30 Mar 2024 18:25:03 +0000 Original-Received: (at 69983) by debbugs.gnu.org; 30 Mar 2024 18:24:57 +0000 Original-Received: from localhost ([127.0.0.1]:46148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqdNw-0006TJ-MZ for submit@debbugs.gnu.org; Sat, 30 Mar 2024 14:24:56 -0400 Original-Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]:56871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqdNk-0006RV-0q for 69983@debbugs.gnu.org; Sat, 30 Mar 2024 14:24:45 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id C4B351BF203; Sat, 30 Mar 2024 18:24:34 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Sat, 30 Mar 2024 10:36:49 +0100") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282391 Archived-At: >>> 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'.