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 068A2431FC2
\r
6 for <notmuch@notmuchmail.org>; Thu, 30 May 2013 13:11:35 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 KeIYxOUE7bkA for <notmuch@notmuchmail.org>;
\r
18 Thu, 30 May 2013 13:11:27 -0700 (PDT)
\r
19 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com
\r
20 [209.85.212.177]) (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 4F7FC431FBC
\r
23 for <notmuch@notmuchmail.org>; Thu, 30 May 2013 13:11:27 -0700 (PDT)
\r
24 Received: by mail-wi0-f177.google.com with SMTP id hr14so68129wib.10
\r
25 for <notmuch@notmuchmail.org>; Thu, 30 May 2013 13:11:24 -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;
\r
28 bh=P2r7s0ujpubjN4C+127pTJzx162HSRlgdPv3KmrdzZs=;
\r
29 b=w1Sh9FxrdaJgMD/+tkxqgKf5bw1xBF+GF9dDzdZ567ZlMXB0IkPSfjkfQQfkuq0cg+
\r
30 BxEiJSnwr7YMgplDCY9/1/5r5Wv4vXczAOiO6THd69TxMhhIHQorMQM2a+d8C5TH1MdJ
\r
31 rrflQ/ut5SC0KXvW+4cP/aNjEw/BkXZ5NFKaVqb3WEcQ9DQiJ+QV3O3E4/BkvNn93xLd
\r
32 qMj+mbXbJMJnPeNInthjoyD7Gx+dXlQ3ALqtJJi8ZfGDZds3jyhY4yB44JQzlY0/4tGl
\r
33 qmn2zdHbGt1pprYuEhwc3ExQwT+Xj0Q1gx/p1BjWETQFMj6mbt+hX62sUcBfKC/cQ56o
\r
35 X-Received: by 10.180.184.101 with SMTP id et5mr299695wic.45.1369944684778;
\r
36 Thu, 30 May 2013 13:11:24 -0700 (PDT)
\r
37 Received: from localhost (188.31.30.81.threembb.co.uk. [188.31.30.81])
\r
38 by mx.google.com with ESMTPSA id q20sm561179wiv.7.2013.05.30.13.11.19
\r
39 for <multiple recipients>
\r
40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
41 Thu, 30 May 2013 13:11:24 -0700 (PDT)
\r
42 From: Mark Walters <markwalters1009@gmail.com>
\r
43 To: notmuch@notmuchmail.org
\r
44 Subject: [PATCH] emacs: show: change emacs interactive pipe message.
\r
45 Date: Thu, 30 May 2013 21:11:07 +0100
\r
46 Message-Id: <1369944667-22705-1-git-send-email-markwalters1009@gmail.com>
\r
47 X-Mailer: git-send-email 1.7.10.4
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Thu, 30 May 2013 20:11:35 -0000
\r
62 Previously the query string for piping a message to a command was
\r
63 "Pipe message to command: " regardless of whether the function was
\r
64 called with a prefix argument (which pipes all open messages to the
\r
65 command). This patch modifies the `interactive' command to reflect
\r
68 It has irritated me for a while that I couldn't tell if I had
\r
69 remembered to press c-u before piping messages to git am etc. This
\r
70 fixes that. There may be other better ways: suggestions welcome!
\r
76 emacs/notmuch-show.el | 7 +++++--
\r
77 1 file changed, 5 insertions(+), 2 deletions(-)
\r
79 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
80 index 75fa7c8..2fc818f 100644
\r
81 --- a/emacs/notmuch-show.el
\r
82 +++ b/emacs/notmuch-show.el
\r
83 @@ -1716,8 +1716,11 @@ to stdout or stderr will appear in the *notmuch-pipe* buffer.
\r
84 When invoked with a prefix argument, the command will receive all
\r
85 open messages in the current thread (formatted as an mbox) rather
\r
86 than only the current message."
\r
87 - (interactive "P\nsPipe message to command: ")
\r
88 - (let (shell-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
96 (concat notmuch-command " show --format=mbox --exclude=false "
\r