Re: [PATCH v3 1/4] emacs: Let the user choose where to compose new mails
authorThomas Jost <schnouki@schnouki.net>
Sun, 22 Apr 2012 22:25:38 +0000 (00:25 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:39 +0000 (09:46 -0800)
52/02ecbc25757dce5bcf23ae21f0c9f5bca8442f [new file with mode: 0644]

diff --git a/52/02ecbc25757dce5bcf23ae21f0c9f5bca8442f b/52/02ecbc25757dce5bcf23ae21f0c9f5bca8442f
new file mode 100644 (file)
index 0000000..efafdf7
--- /dev/null
@@ -0,0 +1,143 @@
+Return-Path: <schnouki@schnouki.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 04A6E431FAF\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 15:25:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id eAOfvB22QC3h for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Apr 2012 15:25:47 -0700 (PDT)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9E17B431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Apr 2012 15:25:47 -0700 (PDT)\r
+Received: from odin.local (unknown\r
+ [IPv6:2a01:e34:eee0:2d0:221:5cff:fe51:5c0b])  by ks3536.kimsufi.com (Postfix)\r
+ with ESMTPSA id 4E3546C000B;  Mon, 23 Apr 2012 00:25:47 +0200 (CEST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1335133547;\r
+       bh=qQkPn+JbKLoEJwr5dOlh25+aeXS3mLiGWeLlgKbM9iQ=;\r
+       h=From:To:Subject:In-Reply-To:References:Date;\r
+       b=Dvj54R47PH/MLVkDnz9MeZn5vBQCYjurS9rtRZgR2KaRR1Xx8mZTz6WZLzlacQ3ET\r
+       j//L3lyNBW33IABV/R4vSjPtdo4Zzve0UjxnD7Q9zsYse0aZ4h544a7V2gqAzPZ3bc\r
+       /OVFImDzfZWIyN6Fj0mA7vQgSQJ65tLljk5LbuRc=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: David Bremner <david@tethera.net>,\r
+       Jameson Graef Rollins <jrollins@finestructure.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v3 1/4] emacs: Let the user choose where to compose new\r
+       mails\r
+In-Reply-To: <878vhxt5bt.fsf@zancas.localnet>\r
+References: <87d3cx2t38.fsf@rocinante.cs.unb.ca>\r
+       <1323797532-597-1-git-send-email-schnouki@schnouki.net>\r
+       <1323797532-597-2-git-send-email-schnouki@schnouki.net>\r
+       <87pqbayukw.fsf@servo.finestructure.net>\r
+       <878vhxt5bt.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.12+100~gbed9ca7 (http://notmuchmail.org) Emacs/24.0.95.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Mon, 23 Apr 2012 00:25:38 +0200\r
+Message-ID: <87y5pn76al.fsf@schnouki.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 22 Apr 2012 22:25:49 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Le 15 avril 2012 =C3=A0 16:52 CEST, David Bremner a =C3=A9crit :\r
+> Jameson Graef Rollins <jrollins@finestructure.net> writes:\r
+>\r
+>> I think the issues that David was experiencing have to do with flakiness\r
+>> in emacs's dedicated windows, not in this patch itself.\r
+>\r
+> Thomas,\r
+>\r
+> Did you have a change to investigate this as proposed in\r
+> id:"87zke0aifa.fsf@thor.loria.fr"?\r
+\r
+David,\r
+\r
+Sorry for the delay. I did investigate a little bit, but I did not try\r
+to write a patch to fix the wrong behaviour in Emacs 23.\r
+\r
+AFAICT, Emacs 23 is just buggy in this case. By reading the code of\r
+message-send-and-exit and message-bury [1], here is what happens when\r
+you call message-send-buffer-and-exit with message-kill-buffer-on-exit\r
+set to nil:\r
+=2D message is sent\r
+=2D buffer is buried with burry-buffer\r
+=2D message-bury: if the window is dedicated and its frame not the only\r
+  visible frame, then this frame is deleted\r
+\r
+which explains what happens in Emacs 23 both in daemon and non-daemon\r
+mode.\r
+\r
+In Emacs 24 [2], here is what happens:\r
+=2D message is sent\r
+=2D message-bury: buffer is buried with bury-buffer\r
+\r
+which is (obviously?) correct.\r
+\r
+Really, this looks like a bug in Emacs 23 to me. Emacs 24 has been fixed\r
+by Gnus commits [3] and [4] (maybe [3] is enough, I didn't try). Users\r
+of Emacs 23 can probably just use an up-to-date version of Gnus to have\r
+this issue fixed.\r
+\r
+So I'm not sure it would make sense to try to come up with a workaround\r
+in my patch, nor if it would be worth it. Maybe just adding a message\r
+suggesting Emacs 23 users to enable message-kill-buffer-on-exit if they\r
+use the Gnus version shipped with Emacs?\r
+\r
+Other than that, Jameson's commit [5] is exactly the same as the one in\r
+my tree with a better commit message, so I'm in favor of pulling it.\r
+\r
+[1] http://bzr.savannah.gnu.org/lh/emacs/emacs-23/annotate/head:/lisp/gnus/=\r
+message.el\r
+[2] http://bzr.savannah.gnu.org/lh/emacs/emacs-24/annotate/head:/lisp/gnus/=\r
+message.el\r
+[3] http://git.gnus.org/cgit/gnus.git/commit/?id=3D30eb6d24d30bc028fce91a0c=\r
+62044c5dc1fdd90e\r
+[4] http://git.gnus.org/cgit/gnus.git/commit/?id=3De3fc7cb33eb07dd3b48cfc72=\r
+f0cada1f1edbcb85\r
+[5] id:"1334436137-6099-1-git-send-email-jrollins@finestructure.net"\r
+\r
+Regards,\r
+\r
+=2D-\r
+Thomas/Schnouki\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.19 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJPlIVnAAoJEOQWxbmv9eBxUAcIAJtr9akZGKyHqSgLfnwMxmPc\r
+6KWJt9GHzP3o9iXYaXMPvFqHsWsHXAj/iISu11FRVEe12FliNOcj8v2mvuTzMhIj\r
+mM50z91hh+5tPgY6hiSLwaNtd4bTOrecWRBVLuc/uI9z8zS1NE0Mt363uA2YPSr+\r
+9hSZc9TMmcRIQAdwHLLovALFssXF+ijcY7sNRnrhHXXPI5zI5mGObTs+bPYkuOkB\r
+Rj0izfGOxnbJIeJ0dr75tmlZNDAjWc35Jk/s31bdK4Ccp/AT6wVw56uyTMGy9k3l\r
+ySrCe9L/Ttk+p/6xhm7YifEnkUwBzRawOaStLq3Jdnh87pSM/EW1/lGDW5YaQtU=\r
+=YIlX\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r