database error
[notmuch-archives.git] / a5 / 908028086480908589560da2f29497bdc9e625
1 Return-Path: <dme@dme.org>\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 4B6A240DBC8\r
6         for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 06:24:25 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id IPsbRgGfK9+r for <notmuch@notmuchmail.org>;\r
16         Mon, 15 Nov 2010 06:24:13 -0800 (PST)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        by olra.theworths.org (Postfix) with ESMTP id 954AC40DDC5       for\r
19  <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 06:24:13 -0800 (PST)\r
20 Received: by wwb31 with SMTP id 31so2625817wwb.2\r
21         for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 06:24:12 -0800 (PST)\r
22 Received: by 10.227.196.74 with SMTP id ef10mr6159653wbb.18.1289831052078;\r
23         Mon, 15 Nov 2010 06:24:12 -0800 (PST)\r
24 Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com\r
25         [81.149.164.25])\r
26         by mx.google.com with ESMTPS id ga16sm18127wbb.1.2010.11.15.06.24.10\r
27         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
28         Mon, 15 Nov 2010 06:24:11 -0800 (PST)\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
30         id 80984594056; Mon, 15 Nov 2010 14:21:54 +0000 (GMT)\r
31 From: David Edmondson <dme@dme.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] emacs: Use `view-mode' when examining raw messages.\r
34 Date: Mon, 15 Nov 2010 14:21:53 +0000\r
35 Message-Id: <1289830913-9650-1-git-send-email-dme@dme.org>\r
36 X-Mailer: git-send-email 1.7.2.3\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Mon, 15 Nov 2010 14:24:25 -0000\r
50 \r
51 ---\r
52  emacs/notmuch-show.el |   12 +++++++-----\r
53  1 files changed, 7 insertions(+), 5 deletions(-)\r
54 \r
55 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
56 index c9d086c..cd35f48 100644\r
57 --- a/emacs/notmuch-show.el\r
58 +++ b/emacs/notmuch-show.el\r
59 @@ -1048,11 +1048,13 @@ any effects from previous calls to\r
60  (defun notmuch-show-view-raw-message ()\r
61    "View the file holding the current message."\r
62    (interactive)\r
63 -  (let ((id (notmuch-show-get-message-id)))\r
64 -    (let ((buf (get-buffer-create (concat "*notmuch-raw-" id "*"))))\r
65 -      (switch-to-buffer buf)\r
66 -      (save-excursion\r
67 -       (call-process notmuch-command nil t nil "show" "--format=raw" id)))))\r
68 +  (let* ((id (notmuch-show-get-message-id))\r
69 +        (buf (get-buffer-create (concat "*notmuch-raw-" id "*"))))\r
70 +    (call-process notmuch-command nil buf nil "show" "--format=raw" id)\r
71 +    (switch-to-buffer buf)\r
72 +    (goto-char (point-min))\r
73 +    (set-buffer-modified-p nil)\r
74 +    (view-buffer buf 'kill-buffer-if-not-modified)))\r
75  \r
76  (defun notmuch-show-pipe-message (entire-thread command)\r
77    "Pipe the contents of the current message (or thread) to the given command.\r
78 -- \r
79 1.7.2.3\r
80 \r