Re: [PATCH] notmuch-emacs-mua: do not start emacs daemon w/o --create-frame

Subject: Re: [PATCH] notmuch-emacs-mua: do not start emacs daemon w/o --create-frame

Date: Sun, 02 Aug 2015 12:23:00 +0200

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> 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 ;).

Thread: