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: Wed, 10 Apr 2024 20:49:50 +0300 Organization: LINKOV.NET Message-ID: <861q7dgla3.fsf@mail.linkov.net> References: <86h6gv7e0z.fsf@mail.linkov.net> <3e7b8e64-0a5f-4888-a443-9c69a5fffd98@gmx.at> <86wmpdu0fa.fsf@mail.linkov.net> <86h6gf69jd.fsf@mail.linkov.net> <86sezyjpsn.fsf@mail.linkov.net> <86a5m3jboy.fsf@mail.linkov.net> <86v84rvwpa.fsf@gnu.org> <867ch7gfa4.fsf@mail.linkov.net> <86bk6iwftq.fsf@gnu.org> <86il0pd8da.fsf@mail.linkov.net> <864jc9wk5r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22610"; 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: rudalics@gmx.at, 69983@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 10 20:04:42 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 1rucJO-0005gv-5d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Apr 2024 20:04:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rucIl-0008La-Pi; Wed, 10 Apr 2024 14:04: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 1rucIf-0008KZ-Ex for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 14:03:59 -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 1rucIb-0004Ww-Es for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 14:03:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rucIk-0001qr-54 for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 14:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2024 18:04:02 +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.17127721966577 (code B ref 69983); Wed, 10 Apr 2024 18:04:02 +0000 Original-Received: (at 69983) by debbugs.gnu.org; 10 Apr 2024 18:03:16 +0000 Original-Received: from localhost ([127.0.0.1]:54333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rucHz-0001hv-Ev for submit@debbugs.gnu.org; Wed, 10 Apr 2024 14:03:15 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:32877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rucHp-0001ew-Ut for 69983@debbugs.gnu.org; Wed, 10 Apr 2024 14:03:08 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9DED01C0006; Wed, 10 Apr 2024 18:02:50 +0000 (UTC) In-Reply-To: <864jc9wk5r.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Apr 2024 14:07:28 +0300") 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:283059 Archived-At: >> >> > Why does adding a new feature require changes in existing features, >> >> > let alone such basic features as warnings.el? Can't we introduce the >> >> > category and leave warnings.el, flymake.el, and others alone? I don't >> >> > want to make unsolicited changes in those other places, because that >> >> > runs the risk of disturbing people's arrangements of windows and their >> >> > habits as to where the various windows pop up. >> >> >> >> This is part of continuing development to improve >> >> window handling for users of horizontally split windows. >> > >> > I don't think I understand how category is related to horizontally >> > split windows, please explain. We are still in the context of >> > bug#69983 and its Subject, aren't we? >> > >> > If there are some problems related to horizontally split windows that >> > interfere with showing warnings, please describe them. >> >> The function 'display-warning' has the argument 'buffer-name'. >> This means it's impossible to match the buffer name in >> 'display-buffer-alist', because the buffer name can be anything. >> Therefore the 'category' should be added to the 'display-buffer' >> call in 'display-warning'. >> >> Currently the warning buffer is displayed in a random place >> in horizontally split windows. The change is needed to display it >> in the consistent place. This change is accompanied with adding >> the category for the case if someone don't like this change >> (very unlikely) and wants to revert it to display the buffer >> in a random place. It will be possible to customize this >> by using the category in 'display-buffer-alist'. > > First, as Martin says, the place is never "random". The "random" place was meant in the sense "unpredictable". It uses some least recently used window, but with many windows it's hard to remember what window was least recently used. > More importantly, if we want to let programs and users control where > the warnings are displayed, I'd rather we introduced a new, > warning.el-specific option. Up front, there's no reason for anyone to > assume that display-buffer-alist will have _any_ effect on > display-warning, because we don't document that display-warning uses > display-buffer. So we could one day decide to implement the display > of the warnings in an entirely different fashion, and then no > customizations of display-buffer-alist will be able to affect the > display. In fact, in some situations we already display the warning > other than via display-buffer. These are just excuses to not make life easier for users of horizontally split windows. > In any case, if you are suggesting to change the "random" place where > warnings are displayed, we should first discuss that, because your > assertion that no one will dislike the change sounds very much like > famous last words to me, so to speak ;-) Why discriminate users by their orientation? If users prefer nontraditional horizontal orientation why not help them in situations of horizontally split windows?