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: Wed, 02 Jun 2021 11:56:21 -0700 Message-ID: <87im2wqene.fsf@ericabrahamsen.net> References: <877dm4y07x.fsf@gmail.com> <87zgz0jui2.fsf@ericabrahamsen.net> 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="26400"; 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 Wed Jun 02 20:57:36 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 1loW3c-0006eB-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 20:57:36 +0200 Original-Received: from localhost ([::1]:54060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loW3b-0008Gs-EE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 14:57:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loW35-00081o-EB for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 14:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loW35-0000bS-6e for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 14:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loW35-0005r9-5z for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 14:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 18:57:03 +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.162266019322444 (code B ref 47236); Wed, 02 Jun 2021 18:57:03 +0000 Original-Received: (at 47236) by debbugs.gnu.org; 2 Jun 2021 18:56:33 +0000 Original-Received: from localhost ([127.0.0.1]:41343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loW2b-0005pu-Cc for submit@debbugs.gnu.org; Wed, 02 Jun 2021 14:56:33 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:53276 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loW2Z-0005ph-9e for 47236@debbugs.gnu.org; Wed, 02 Jun 2021 14:56:31 -0400 Original-Received: from localhost (c-71-197-184-122.hsd1.wa.comcast.net [71.197.184.122]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id D22AAFA155; Wed, 2 Jun 2021 18:56:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1622660184; bh=8HxGA8CBvlIyB7H7Q2ASt3ADD9S2wCOxZM5A1fIn76k=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jzxmNbIxDYIy8luFpMuc/LWP/uuN7sS7OAA2P74ftE65XE4pNZFNkvInIchQLos19 4zf4eStOYa7YEUk5L1ajPMTk+jNOKGWYg2nQUF4ZHb4XmctNZdTKbuQgOLxJ+RDbkz vdw3j9N7FwCX7T8zibIkpc1VewygDJg1/xHtUXwE= In-Reply-To: <87zgz0jui2.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 18 Mar 2021 09:29:09 -0700") 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:207878 Archived-At: Eric Abrahamsen writes: > 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. Okay, I've just pushed a new update to EBDB that should come down the pipeline in the next few hours. It greatly simplifies all the above: if you don't touch anything, it will attempt to display the *EBDB* buffer next to the *Article* buffer (in Gnus), or next to the reply composition buffer (in message-mode). If you're using Gnus' window config stuff, as you are, then you can set two options like so: (setq ebdb-gnus-window-configuration 'ebdb-gnus ebdb-message-window-configuration 'ebdb-message) And then use those two symbols inside your `gnus-add-configuration' trees. They can be any symbols you like, but should be distinct (because Gnus and message-mode will update two distinct buffers). This is in 0.6.23, which should appear later today. Please let me know when you've had a chance to try it out! Eric