From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Potential bug in the logic of rmail-select-summary Date: Tue, 19 Jan 2021 20:33:11 +0200 Message-ID: <83wnw87p5k.fsf@gnu.org> References: <8735ywyhli.fsf@gkayaalp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36658"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp , martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 19 20:32:13 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 1l1wjc-0009Om-62 for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 20:32:12 +0100 Original-Received: from localhost ([::1]:58280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1wja-0006Nc-Tf for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jan 2021 14:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1vp5-0001vy-Ji for emacs-devel@gnu.org; Tue, 19 Jan 2021 13:33:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58135) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1vp4-0001Bn-C3; Tue, 19 Jan 2021 13:33:46 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3686 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l1vow-0002Zn-36; Tue, 19 Jan 2021 13:33:44 -0500 In-Reply-To: <8735ywyhli.fsf@gkayaalp.com> (message from =?utf-8?B?R8O2?= =?utf-8?B?a3R1xJ8=?= Kayaalp on Tue, 19 Jan 2021 20:14:17 +0300) 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:263179 Archived-At: > From: Göktuğ Kayaalp > Cc: emacs-devel@gnu.org > Date: Tue, 19 Jan 2021 20:14:17 +0300 > > display-buffer-alist > '(("\\*Quail Completions" . (display-buffer-in-side-window)) > ("\\*.*Completions\\*" . (display-buffer-in-side-window . ((side . bottom)))) > ("\\*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? Well, you in fact asked Emacs to use display-buffer-same-window for displaying any buffer except the few you explicitly exempted, no? Then I think it's what you asked for. > AFAIU rmail-pop-to-buffer could use some form of display-buffer-* to > avoid going through display-buffer-alist. Yes, but I'm not sure we should prevent users from customizing the way Rmail buffers are displayed. Perhaps Martin could comment on this?