From 18eeba8ebcbeee699511215a3bb759e99a7ed127 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 30 Sep 2015 09:36:52 +0300 Subject: [PATCH] [PATCH] notmuch-emacs-mua: make --auto-daemon imply --create-frame --- bd/7bf7361d918c940c806cdd14b823de22f8f49a | 84 +++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 bd/7bf7361d918c940c806cdd14b823de22f8f49a diff --git a/bd/7bf7361d918c940c806cdd14b823de22f8f49a b/bd/7bf7361d918c940c806cdd14b823de22f8f49a new file mode 100644 index 000000000..c81e3b757 --- /dev/null +++ b/bd/7bf7361d918c940c806cdd14b823de22f8f49a @@ -0,0 +1,84 @@ +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 4CC1B6DE1804 + for ; Tue, 29 Sep 2015 23:36:52 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.182 +X-Spam-Level: +X-Spam-Status: No, score=0.182 tagged_above=-999 required=5 tests=[AWL=0.722, + RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] + 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 D6IzeoTRIEBW for ; + Tue, 29 Sep 2015 23:36:50 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 347706DE17FE + for ; Tue, 29 Sep 2015 23:36:50 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 78D231000CA; Wed, 30 Sep 2015 09:36:54 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: [PATCH] notmuch-emacs-mua: make --auto-daemon imply --create-frame +Date: Wed, 30 Sep 2015 09:36:52 +0300 +Message-Id: <1443595012-22664-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.0.0 +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: Wed, 30 Sep 2015 06:36:52 -0000 + +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). +--- + doc/man1/notmuch-emacs-mua.rst | 3 ++- + notmuch-emacs-mua | 1 + + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/doc/man1/notmuch-emacs-mua.rst b/doc/man1/notmuch-emacs-mua.rst +index c3689eb82c8a..7c5729047173 100644 +--- a/doc/man1/notmuch-emacs-mua.rst ++++ b/doc/man1/notmuch-emacs-mua.rst +@@ -43,7 +43,8 @@ Supported options for **notmuch-emacs-mua** include + + ``--auto-daemon`` + 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 a new frame instead of trying to use the current Emacs +diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua +index b51d8d0e2c5b..016fa12613c4 100755 +--- a/notmuch-emacs-mua ++++ b/notmuch-emacs-mua +@@ -108,6 +108,7 @@ while getopts :s:c:b:i:h opt; do + ;; + --auto-daemon) + AUTO_DAEMON="--alternate-editor=" ++ CREATE_FRAME="-c" + ;; + --create-frame) + CREATE_FRAME="-c" +-- +2.0.0 + -- 2.26.2