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#70795: 30.0.50; inconsistent warning-display-at-bottom display-buffer-alist behavior Date: Mon, 06 May 2024 09:46:57 +0300 Organization: LINKOV.NET Message-ID: <868r0na0sa.fsf@mail.linkov.net> References: <0dec4b001f2bc7521541e4262a623c41@posteo.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="615"; 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: 70795@debbugs.gnu.org To: Gerard Vermeulen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 09:09:52 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 1s3sTw-000AZh-GT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 09:09:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3sTd-0008E9-Ag; Mon, 06 May 2024 03:09:34 -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 1s3sSl-00088Y-Et for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 03:08:39 -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 1s3sSl-0004cr-3M for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 03:08:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3sT9-0005Ug-3Q for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 03:09: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: Mon, 06 May 2024 07:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70795 X-GNU-PR-Package: emacs Original-Received: via spool by 70795-submit@debbugs.gnu.org id=B70795.171497929621078 (code B ref 70795); Mon, 06 May 2024 07:09:03 +0000 Original-Received: (at 70795) by debbugs.gnu.org; 6 May 2024 07:08:16 +0000 Original-Received: from localhost ([127.0.0.1]:36163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3sSO-0005Tt-7T for submit@debbugs.gnu.org; Mon, 06 May 2024 03:08:16 -0400 Original-Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:39263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3sSI-0005TY-5F for 70795@debbugs.gnu.org; Mon, 06 May 2024 03:08:14 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 8C61E240009; Mon, 6 May 2024 07:07:37 +0000 (UTC) In-Reply-To: <0dec4b001f2bc7521541e4262a623c41@posteo.net> (Gerard Vermeulen's message of "Mon, 06 May 2024 06:06:03 +0000") 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:284562 Archived-At: > (add-to-list 'display-buffer-alist > `(,(rx (or "*Warnings*" "*compilation*")) > display-buffer-no-window > (allow-no-window . t))) > > then warnings are added to the hidden *Warnings* buffer. This is because this case doesn't set 'warning-series', so when window is nil, it doesn't fail at anoter place while calling 'set-window-start': (when (and (markerp warning-series) (eq (marker-buffer warning-series) buffer)) (set-window-start window warning-series)) Ok, I will add only checks for nil window. But won't add (allow-no-window . t) to the caller of 'display-buffer' in 'display-warning' to not encourage hiding the warning buffer.