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

David Bremner david at tethera.net
Sun Aug 2 03:23:00 PDT 2015


Tomi Ollila <tomi.ollila at 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 ;).


More information about the notmuch mailing list