Re: [PATCH 1/1] emacs: initialize ido(-completing-read) in emacs 23.[123]
[notmuch-archives.git] / e5 / c374889bf93ccb681709f7b51c2b2ca1362945
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 1DD4F431FBC\r
6         for <notmuch@notmuchmail.org>; Sun,  9 Jun 2013 01:42:01 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 4xZ0f+oz5ngp for <notmuch@notmuchmail.org>;\r
18         Sun,  9 Jun 2013 01:41:55 -0700 (PDT)\r
19 Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com\r
20         [209.85.215.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 74AF2431FAE\r
23         for <notmuch@notmuchmail.org>; Sun,  9 Jun 2013 01:41:55 -0700 (PDT)\r
24 Received: by mail-ea0-f180.google.com with SMTP id k10so4674106eaj.25\r
25         for <notmuch@notmuchmail.org>; Sun, 09 Jun 2013 01:41:54 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
28         bh=s9FqC0hgcvDAyHEbayfO0pvedbgetKjDCgB6rRP4JFM=;\r
29         b=T5lA79Yvndc8qMVyzj7egsnJuDpJsYwiMoZY127upQ73X9co6C2RYG9GOl8O2nDKS+\r
30         QJWD0KYHb81o68IzBnKD9UxG3Qsmw+13wyKkahdrUVaAgBt2BnDP1FQ8f4Xs6KWXR0Pt\r
31         opENrRIt93gXsTw+E8H/HlTcflCi5yq3d3uS/pXX1NLjWW/7bhDfuXQD57822xVG6ftm\r
32         fRRGTHVPNrdAJebiClySU6zepZgDIAIal1hmkcKryBXDK8Qo3ApGNELJM6D1ZbzqnIwp\r
33         mLOgA8Mnx9SUU9z7Ndg2GbvWueqn8nFRV/PKIjBxqHLRru6EEMeyF+5wiq5Eb4+CdL1V\r
34         BfEQ==\r
35 X-Received: by 10.14.215.5 with SMTP id d5mr50999eep.143.1370767312949;\r
36         Sun, 09 Jun 2013 01:41:52 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id\r
39         p43sm13085628eem.11.2013.06.09.01.41.51 for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Sun, 09 Jun 2013 01:41:52 -0700 (PDT)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH v2] emacs: show: change emacs interactive pipe message.\r
45 Date: Sun,  9 Jun 2013 09:41:48 +0100\r
46 Message-Id: <1370767308-1636-1-git-send-email-markwalters1009@gmail.com>\r
47 X-Mailer: git-send-email 1.7.9.1\r
48 In-Reply-To: <1369944667-22705-1-git-send-email-markwalters1009@gmail.com>\r
49 References: <1369944667-22705-1-git-send-email-markwalters1009@gmail.com>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Sun, 09 Jun 2013 08:42:01 -0000\r
63 \r
64 Previously the query string for piping a message to a command was\r
65 "Pipe message to command: " regardless of whether the function was\r
66 called with a prefix argument (which pipes all open messages to the\r
67 command). This patch modifies the `interactive' command to reflect\r
68 this.\r
69 ---\r
70 This has the whitespace fix Tomi mentioned but is otherwise unchanged.\r
71 \r
72 Best wishes\r
73 \r
74 Mark\r
75 \r
76 \r
77  emacs/notmuch-show.el |    5 ++++-\r
78  1 files changed, 4 insertions(+), 1 deletions(-)\r
79 \r
80 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
81 index 83bb9ad..d863f2b 100644\r
82 --- a/emacs/notmuch-show.el\r
83 +++ b/emacs/notmuch-show.el\r
84 @@ -1702,7 +1702,10 @@ to stdout or stderr will appear in the *notmuch-pipe* buffer.\r
85  When invoked with a prefix argument, the command will receive all\r
86  open messages in the current thread (formatted as an mbox) rather\r
87  than only the current message."\r
88 -  (interactive "P\nsPipe message to command: ")\r
89 +  (interactive (let ((query-string (if current-prefix-arg\r
90 +                                      "Pipe all open messages to command: "\r
91 +                                    "Pipe message to command: ")))\r
92 +                (list current-prefix-arg (read-string query-string))))\r
93    (let (shell-command)\r
94      (if entire-thread\r
95         (setq shell-command\r
96 -- \r
97 1.7.9.1\r
98 \r