Re: [DRAFT PATCH v2] modified notmuch-emacs-mua v2
authorDavid Bremner <david@tethera.net>
Tue, 20 Jan 2015 18:58:51 +0000 (19:58 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:47:38 +0000 (14:47 -0700)
d5/f80a01cc18411b9aaab6e8297b9050517cb6f4 [new file with mode: 0644]

diff --git a/d5/f80a01cc18411b9aaab6e8297b9050517cb6f4 b/d5/f80a01cc18411b9aaab6e8297b9050517cb6f4
new file mode 100644 (file)
index 0000000..e35ae9b
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <david@tethera.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 1040A431FCF\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Jan 2015 11:01:24 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 BSusi5MHf8n4 for <notmuch@notmuchmail.org>;\r
+       Tue, 20 Jan 2015 11:01:19 -0800 (PST)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+       [87.98.215.224])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id ED9B0431FC9\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Jan 2015 11:01:18 -0800 (PST)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+       4.80) (envelope-from <david@tethera.net>)\r
+       id 1YDe13-0008CI-5M; Tue, 20 Jan 2015 18:59:05 +0000\r
+Received: (nullmailer pid 23070 invoked by uid 1000); Tue, 20 Jan 2015\r
+       18:58:51 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org, Jani Nikula\r
+       <jani@nikula.org>\r
+Subject: Re: [DRAFT PATCH v2] modified notmuch-emacs-mua v2\r
+In-Reply-To: <1421776424-24304-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1421598115-4889-1-git-send-email-david@tethera.net>\r
+       <1421776424-24304-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.19+27~g29ffde4 (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 20 Jan 2015 19:58:51 +0100\r
+Message-ID: <87ppa9xor8.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: tomi.ollila@iki.fi\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: Tue, 20 Jan 2015 19:01:24 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> This is second draft patch of (first being)\r
+>\r
+> id:1405026779-29966-1-git-send-email-tomi.ollila@iki.fi\r
+>\r
+> I saw potential problem with only supporting emacsclient(1) in\r
+> the version David sent:\r
+> id:1421598115-4889-1-git-send-email-david@tethera.net\r
+>\r
+> (no emacs server running and no tty -- new X client not started)\r
+>\r
+\r
+I don't understand what use case is failing for you. I think I tested\r
+all 4 combinations of DISPLAY set and unset and emacs server running and\r
+not running.  Do you somehow want to run the notmuch-emacs-mua script\r
+from a process not attached to a terminal (from cron?).\r
+\r
+> In case emacsclient(1) is used and no --no-window-system, '-c' arg is\r
+> given to emacsclient like in the version David sent.\r
+>\r
+> (this means that if emacs is not running on X, user may get this message:\r
+>  "emacsclient: could not get terminal name" -- we need to document user\r
+>  to give -nw (--no-window-system) option then)\r
+\r
+As I wrote above, I'm missing what the tradeoff is. The version I sent\r
+works fine (at least for me) in the case where DISPLAY is not set and\r
+--no-window-system is not given (i.e. it's implied if DISPLAY is not\r
+set).\r
+\r
+d\r