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