From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.devel Subject: Re: Potential bug in the logic of rmail-select-summary Date: Tue, 19 Jan 2021 20:14:17 +0300 Message-ID: <8735ywyhli.fsf@gkayaalp.com> References: <837do97zgi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 19 18:52:53 2021 Return-path: Envelope-to: ged-emacs-devel@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 1l1vBU-0005tY-J8 for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 18:52:52 +0100 Original-Received: from localhost ([::1]:44120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1vBT-0000wm-6X for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 12:52:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1uaJ-0003kI-Bw for emacs-devel@gnu.org; Tue, 19 Jan 2021 12:14:28 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:35223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1uaH-0005nh-3g; Tue, 19 Jan 2021 12:14:27 -0500 X-Originating-IP: 46.2.237.117 Original-Received: from localhost (unknown [46.2.237.117]) (Authenticated sender: self@gkayaalp.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 5C71A1C000A; Tue, 19 Jan 2021 17:14:19 +0000 (UTC) In-Reply-To: <837do97zgi.fsf@gnu.org> (message from Eli Zaretskii on Tue, 19 Jan 2021 16:50:37 +0200) Received-SPF: none client-ip=217.70.183.197; envelope-from=self@gkayaalp.com; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263176 Archived-At: On 2021-01-19 16:50 +02, Eli Zaretskii wrote: > In what version of Emacs do you see that? Build of 36d33776c21b3765b8a611f09ae7d86417abee8a, within last few days. > FWIW, I cannot reproduce this, neither in Emacs 27 nor in Emacs 28. > Does this happen in "emacs -Q"? (I use Rmail all the time, and I > always have both the mbox file and its summary displayed, so if this > would be happening to me, I'd sure have noticed.) Indeed, I should=E2=80=99ve known better and tested with -Q. I=E2=80=99m s= orry about that. So apparently the problem was caused by some interaction with the following bit of config: display-buffer-alist '(("\\*Quail Completions" . (display-buffer-in-side-window)) ("\\*.*Completions\\*" . (display-buffer-in-side-window . ((side . botto= m)))) ("\\*Help\\*" . (display-buffer-reuse-window)) ("Checkdoc" . (display-buffer-pop-up-window)) ("Calendar" . (display-buffer-in-side-window . ((side . bottom)))) ("help\\[R\\]" . (display-buffer-pop-up-window)) (".*" . (display-buffer-same-window))) When I commented out that last line it worked. FWIW, I added the following advice which seems to help: (define-advice rmail-show-message (:around (fn &rest args) inhibit-display-buffer-alist) (let ((display-buffer-alist nil)) (apply fn args))) Is this an expected interaction or a bug? AFAIU rmail-pop-to-buffer could use some form of display-buffer-* to avoid going through display-buffer-alist. --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp / @cadadr / pgp: 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427