From a419fe157d3d219aee2c64bfaf3608d8b6a6eeb3 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 16 May 2016 10:28:48 +2100 Subject: [PATCH] Re: [PATCH] notmuch-emacs-mua: escape $PWD (and cd always). use message-add-actions. --- e7/c3d407608247ed1c54a29317684c2835477ecb | 64 +++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 e7/c3d407608247ed1c54a29317684c2835477ecb diff --git a/e7/c3d407608247ed1c54a29317684c2835477ecb b/e7/c3d407608247ed1c54a29317684c2835477ecb new file mode 100644 index 000000000..c58ab82da --- /dev/null +++ b/e7/c3d407608247ed1c54a29317684c2835477ecb @@ -0,0 +1,64 @@ +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 624716DE0222 + for ; Sun, 15 May 2016 06:29:04 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.012 +X-Spam-Level: +X-Spam-Status: No, score=-0.012 tagged_above=-999 required=5 + tests=[AWL=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-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 tBApL-0J6KfH for ; + Sun, 15 May 2016 06:28:55 -0700 (PDT) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 913BB6DE015B + for ; Sun, 15 May 2016 06:28:55 -0700 (PDT) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1b1w67-0007tD-CJ; Sun, 15 May 2016 09:28:43 -0400 +Received: (nullmailer pid 15421 invoked by uid 1000); + Sun, 15 May 2016 13:28:48 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Subject: Re: [PATCH] notmuch-emacs-mua: escape $PWD (and cd always). use + message-add-actions. +In-Reply-To: <1460655884-18148-1-git-send-email-tomi.ollila@iki.fi> +References: <1460655884-18148-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sun, 15 May 2016 10:28:48 -0300 +Message-ID: <877fev1mcv.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 15 May 2016 13:29:04 -0000 + +Tomi Ollila writes: + +> # Kill the terminal/frame if we're creating one. +> if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then +> - ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))" +> + ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)" +> fi +> + +This seems to work fine, but afaict it is two completely distinct +patches squashed into one. + +d -- 2.26.2