Re: [PATCH] notmuch-emacs-mua: escape $PWD (and cd always). use message-add-actions.
authorDavid Bremner <david@tethera.net>
Sun, 15 May 2016 13:28:48 +0000 (10:28 +2100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:50 +0000 (16:21 -0700)
e7/c3d407608247ed1c54a29317684c2835477ecb [new file with mode: 0644]

diff --git a/e7/c3d407608247ed1c54a29317684c2835477ecb b/e7/c3d407608247ed1c54a29317684c2835477ecb
new file mode 100644 (file)
index 0000000..c58ab82
--- /dev/null
@@ -0,0 +1,64 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 624716DE0222\r
+ for <notmuch@notmuchmail.org>; Sun, 15 May 2016 06:29:04 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.012\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.012 tagged_above=-999 required=5\r
+ tests=[AWL=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id tBApL-0J6KfH for <notmuch@notmuchmail.org>;\r
+ Sun, 15 May 2016 06:28:55 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 913BB6DE015B\r
+ for <notmuch@notmuchmail.org>; Sun, 15 May 2016 06:28:55 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1b1w67-0007tD-CJ; Sun, 15 May 2016 09:28:43 -0400\r
+Received: (nullmailer pid 15421 invoked by uid 1000);\r
+ Sun, 15 May 2016 13:28:48 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] notmuch-emacs-mua: escape $PWD (and cd always). use\r
+ message-add-actions.\r
+In-Reply-To: <1460655884-18148-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1460655884-18148-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 15 May 2016 10:28:48 -0300\r
+Message-ID: <877fev1mcv.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 15 May 2016 13:29:04 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+>  # Kill the terminal/frame if we're creating one.\r
+>  if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then\r
+> -    ELISP="${ELISP} (setq message-exit-actions (list #'save-buffers-kill-terminal))"\r
+> +    ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)"\r
+>  fi\r
+>  \r
+\r
+This seems to work fine, but afaict it is two completely distinct\r
+patches squashed into one.\r
+\r
+d\r