notmuch-emacs-mua: make --auto-daemon imply --create-frame

Before this change with --auto-daemon but without --create-frame
emacs server was started but no clients stay connected to it
(in both graphical and terminal displays).

Note that this changes how --client --auto-daemon works on
graphical display; New emacs frame is now created for the
message (and message-exit-actions hook appended).
This commit is contained in:
Tomi Ollila 2015-09-30 09:36:52 +03:00 committed by David Bremner
parent b69201da5d
commit 7b7dadb93f
2 changed files with 3 additions and 1 deletions

View file

@ -43,7 +43,8 @@ Supported options for **notmuch-emacs-mua** include
``--auto-daemon`` ``--auto-daemon``
Automatically start Emacs in daemon mode, if the Emacs server Automatically start Emacs in daemon mode, if the Emacs server
is not running. Applicable with ``--client``. is not running. Applicable with ``--client``. Implies
``--create-frame``.
``--create-frame`` ``--create-frame``
Create a new frame instead of trying to use the current Emacs Create a new frame instead of trying to use the current Emacs

View file

@ -108,6 +108,7 @@ while getopts :s:c:b:i:h opt; do
;; ;;
--auto-daemon) --auto-daemon)
AUTO_DAEMON="--alternate-editor=" AUTO_DAEMON="--alternate-editor="
CREATE_FRAME="-c"
;; ;;
--create-frame) --create-frame)
CREATE_FRAME="-c" CREATE_FRAME="-c"