From aeb46f5d8d18fe4d05b434937d0ee3d693520d6f Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Sun, 9 Jun 2013 09:41:48 +0100 Subject: [PATCH] [PATCH v2] emacs: show: change emacs interactive pipe message. --- e5/c374889bf93ccb681709f7b51c2b2ca1362945 | 98 +++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 e5/c374889bf93ccb681709f7b51c2b2ca1362945 diff --git a/e5/c374889bf93ccb681709f7b51c2b2ca1362945 b/e5/c374889bf93ccb681709f7b51c2b2ca1362945 new file mode 100644 index 000000000..0dfcfc345 --- /dev/null +++ b/e5/c374889bf93ccb681709f7b51c2b2ca1362945 @@ -0,0 +1,98 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 1DD4F431FBC + for ; Sun, 9 Jun 2013 01:42:01 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 4xZ0f+oz5ngp for ; + Sun, 9 Jun 2013 01:41:55 -0700 (PDT) +Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com + [209.85.215.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 74AF2431FAE + for ; Sun, 9 Jun 2013 01:41:55 -0700 (PDT) +Received: by mail-ea0-f180.google.com with SMTP id k10so4674106eaj.25 + for ; Sun, 09 Jun 2013 01:41:54 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; + bh=s9FqC0hgcvDAyHEbayfO0pvedbgetKjDCgB6rRP4JFM=; + b=T5lA79Yvndc8qMVyzj7egsnJuDpJsYwiMoZY127upQ73X9co6C2RYG9GOl8O2nDKS+ + QJWD0KYHb81o68IzBnKD9UxG3Qsmw+13wyKkahdrUVaAgBt2BnDP1FQ8f4Xs6KWXR0Pt + opENrRIt93gXsTw+E8H/HlTcflCi5yq3d3uS/pXX1NLjWW/7bhDfuXQD57822xVG6ftm + fRRGTHVPNrdAJebiClySU6zepZgDIAIal1hmkcKryBXDK8Qo3ApGNELJM6D1ZbzqnIwp + mLOgA8Mnx9SUU9z7Ndg2GbvWueqn8nFRV/PKIjBxqHLRru6EEMeyF+5wiq5Eb4+CdL1V + BfEQ== +X-Received: by 10.14.215.5 with SMTP id d5mr50999eep.143.1370767312949; + Sun, 09 Jun 2013 01:41:52 -0700 (PDT) +Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31]) + by mx.google.com with ESMTPSA id + p43sm13085628eem.11.2013.06.09.01.41.51 for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 09 Jun 2013 01:41:52 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH v2] emacs: show: change emacs interactive pipe message. +Date: Sun, 9 Jun 2013 09:41:48 +0100 +Message-Id: <1370767308-1636-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1369944667-22705-1-git-send-email-markwalters1009@gmail.com> +References: <1369944667-22705-1-git-send-email-markwalters1009@gmail.com> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 09 Jun 2013 08:42:01 -0000 + +Previously the query string for piping a message to a command was +"Pipe message to command: " regardless of whether the function was +called with a prefix argument (which pipes all open messages to the +command). This patch modifies the `interactive' command to reflect +this. +--- +This has the whitespace fix Tomi mentioned but is otherwise unchanged. + +Best wishes + +Mark + + + emacs/notmuch-show.el | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index 83bb9ad..d863f2b 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1702,7 +1702,10 @@ to stdout or stderr will appear in the *notmuch-pipe* buffer. + When invoked with a prefix argument, the command will receive all + open messages in the current thread (formatted as an mbox) rather + than only the current message." +- (interactive "P\nsPipe message to command: ") ++ (interactive (let ((query-string (if current-prefix-arg ++ "Pipe all open messages to command: " ++ "Pipe message to command: "))) ++ (list current-prefix-arg (read-string query-string)))) + (let (shell-command) + (if entire-thread + (setq shell-command +-- +1.7.9.1 + -- 2.26.2