From: David Bremner Date: Sun, 2 Aug 2015 10:23:00 +0000 (+0200) Subject: Re: [PATCH] notmuch-emacs-mua: do not start emacs daemon w/o --create-frame X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abf4df1d1cf2c881cdc670e14748966a586228f8;p=notmuch-archives.git Re: [PATCH] notmuch-emacs-mua: do not start emacs daemon w/o --create-frame --- diff --git a/57/2da8801e7b289eb78eb5a5168c59f87e220806 b/57/2da8801e7b289eb78eb5a5168c59f87e220806 new file mode 100644 index 000000000..34934d196 --- /dev/null +++ b/57/2da8801e7b289eb78eb5a5168c59f87e220806 @@ -0,0 +1,75 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 0F5516DE1761 + for ; Sun, 2 Aug 2015 03:25:32 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.145 +X-Spam-Level: +X-Spam-Status: No, score=0.145 tagged_above=-999 required=5 tests=[AWL=0.145] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 8uU8HexLIoqg for ; + Sun, 2 Aug 2015 03:25:28 -0700 (PDT) +Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) + by arlo.cworth.org (Postfix) with ESMTPS id 3A06D6DE173B + for ; Sun, 2 Aug 2015 03:25:28 -0700 (PDT) +Received: from remotemail by gitolite.debian.net with local (Exim 4.80) + (envelope-from ) + id 1ZLqQF-0000oa-8e; Sun, 02 Aug 2015 10:23:15 +0000 +Received: (nullmailer pid 30956 invoked by uid 1000); Sun, 02 Aug 2015 + 10:23:00 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Subject: Re: [PATCH] notmuch-emacs-mua: do not start emacs daemon w/o + --create-frame +In-Reply-To: <1431371993-24292-1-git-send-email-tomi.ollila@iki.fi> +References: <1431194464-2595-1-git-send-email-jani@nikula.org> + <1431371993-24292-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sun, 02 Aug 2015 12:23:00 +0200 +Message-ID: <87mvya3s6z.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.18 +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: Sun, 02 Aug 2015 10:25:32 -0000 + +Tomi Ollila writes: + +> notmuch-emacs-mua --client used to start daemon process if it was +> not running -- just that no emacs mail window of any kind from +> that is visible to the user. +> +> When not starting emacs server in this case notmuch-emacs-mua +> user will get the same message as would emacsclient user +> have, which should be enough for such user to understand how +> to proceed starting emacs server in a way that it is useable +> for this purpose. + +I'm not a big fan of overloading arguments, i.e. if the daemon isn't +automatically started for all uses of --client, I'd rather there was +another argument like --auto-daemon so that there are at least 4 ways of +invoking + +| n-e-m | start a new emacs instance, and kill it after | +| n-e-m --client | like emacsclient | +| n-e-m --client --create-frame | like emacsclient -c, destroy after send | +| n-e-m --client --create-frame --auto-daemon | like emacsclient -c -a, destroy after send | + +Since there are probably only 3 users, this should be sufficient ;).