From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#47236: 28.0.50; ebdb-mua-pop-up bad interaction with gnus window configurations Date: Thu, 18 Mar 2021 09:29:09 -0700 Message-ID: <87zgz0jui2.fsf@ericabrahamsen.net> References: <877dm4y07x.fsf@gmail.com> 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="39829"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47236@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 17:43:41 2021 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 1lMvkL-000ADT-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 17:43:41 +0100 Original-Received: from localhost ([::1]:40500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMvkK-0004ob-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 12:43:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMvX9-0003S9-3M for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36331) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMvX8-0007k1-Mw for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMvX8-0002bF-Iv for bug-gnu-emacs@gnu.org; Thu, 18 Mar 2021 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Mar 2021 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47236 X-GNU-PR-Package: emacs Original-Received: via spool by 47236-submit@debbugs.gnu.org id=B47236.16160849599918 (code B ref 47236); Thu, 18 Mar 2021 16:30:02 +0000 Original-Received: (at 47236) by debbugs.gnu.org; 18 Mar 2021 16:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:47877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvWQ-0002Zt-Q1 for submit@debbugs.gnu.org; Thu, 18 Mar 2021 12:29:19 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:45436 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMvWP-0002Ze-5k for 47236@debbugs.gnu.org; Thu, 18 Mar 2021 12:29:17 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 68D32FA0E3; Thu, 18 Mar 2021 16:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1616084951; bh=fytc9cv7+Vdh6mrAYSFbEjtuC7oBCQ1B7cPUXMehJEA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hAYKkXy1hn1jpnMRKeofZKpEUrlWsNQ1tShe5GzZMmXO5LrkBf7ASNfM91Ku54ond MIChgaf77nUUUzl3hkxBT3zobNmLJCvvHNK6BDjuEtol0eyVgiAdc7SA0AM/BUQI8F EOoZ6q8Jia1Z9FA4+u8nwt8d/UwfdVCVj+ncGrNs= In-Reply-To: <877dm4y07x.fsf@gmail.com> (Robert Pluim's message of "Thu, 18 Mar 2021 16:01:54 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:202624 Archived-At: Robert Pluim writes: > Hi Eric, > > This is with ebdb 0.6.22. > > I set up gnus to have a window configuration that shows the *Group*, > *Summary*, *Article* windows simultaneously: > > (gnus-add-configuration > '(article > (horizontal 1.0 > (vertical 50 (group 1.0)) > (vertical 1.0 > (summary 0.3 point) > (article 1.0))))) > (gnus-add-configuration > '(summary > (horizontal 1.0 > (vertical 50 (group 1.0)) > (vertical 1.0 (summary 1.0 point))))) > > And also to pop up a new frame whenever I write a message: > > (dolist (key '(message edit-article post reply forward reply-yank bug)) > (gnus-add-configuration > `(,key > (frame 1.0 > (if (not (buffer-live-p gnus-summary-buffer)) > (car (cdr (assoc 'group gnus-buffer-configuration))) > (car (cdr (assoc 'summary gnus-buffer-configuration)))) > (vertical ((user-position . t) (top . 1) (left . 1) > (name . ,(symbol-name key))) > (message 1.0 point)))))) > > Unfortunately, when ebdb-mua-pop-up is t, two things happen: > > 1. When I enter a group from the *Group* buffer, I end up with only > the *Summary* and *Article* buffer. > > 2. When I reply to a message, I don=CA=BCt get a new frame popping up. Ooh, I don't look forward to messing with Gnus' window configuration. So first of all, the relevant customization options will be: ebdb-gnus-window-configuration ebdb-message-reply-window-config ebdb-message-reply-yank-window-config They can be used to add the relevant clauses to `gnus-buffer-configuration'. (Composing new mail/news doesn't need this config, because the EBDB buffer won't be popped up until you start completing addresses.) Of course this doesn't make any sense at all, because it obliges you to define your entire (e.g.) `article' configuration inside an EBDB-specific customization option, rather than in your Gnus config. ebdb-gnus.el and ebdb-message.el each add keys to `gnus-window-to-buffer', so probably all the EBDB code should do is mention those keys, and then let users put them where they want them in their `gnus-add-configuration' clauses. EXCEPT that will mean that EBDB won't work with Gnus/Message out of the box without some fairly heavy configuration. It won't be at all obvious why the pop-ups aren't working. MAYBE I should just stop messing with `gnus-buffer-configuration' at all, and instead just do this stuff manually with the `display-buffer' mechanisms. Anyway, I'm thinking out loud here, but if you'd be willing to try the config options above and just confirm that you can get things working as desired that way, I will think a bit more about a better approach to the whole thing. Thanks, Eric