1 Return-Path: <Sebastian@SSpaeth.de>
\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 5958E41733A
\r
6 for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:08:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 cagiL145ja2T for <notmuch@notmuchmail.org>;
\r
16 Thu, 22 Apr 2010 02:08:17 -0700 (PDT)
\r
17 Received: from homiemail-a13.g.dreamhost.com (mailbigip.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id 93273417339
\r
20 for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:08:17 -0700 (PDT)
\r
21 Received: from localhost.localdomain (mtec-hg-docking-1-dhcp-204.ethz.ch
\r
22 [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)
\r
23 by homiemail-a13.g.dreamhost.com (Postfix) with ESMTPA id 7AF1D6A8058;
\r
24 Thu, 22 Apr 2010 02:08:11 -0700 (PDT)
\r
25 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
26 To: Notmuch developer list <notmuch@notmuchmail.org>
\r
27 Subject: [PATCH 5/6] notmuch-maildir-fcc: use insert-buffer-substring
\r
28 Date: Thu, 22 Apr 2010 11:07:30 +0200
\r
29 Message-Id: <1271927251-19867-6-git-send-email-Sebastian@SSpaeth.de>
\r
30 X-Mailer: git-send-email 1.7.0.4
\r
31 In-Reply-To: <87ochbx3er.fsf@SSpaeth.de>
\r
32 References: <87ochbx3er.fsf@SSpaeth.de>
\r
33 X-BeenThere: notmuch@notmuchmail.org
\r
34 X-Mailman-Version: 2.1.13
\r
36 List-Id: "Use and development of the notmuch mail system."
\r
37 <notmuch.notmuchmail.org>
\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
39 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
41 List-Post: <mailto:notmuch@notmuchmail.org>
\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
45 X-List-Received-Date: Thu, 22 Apr 2010 09:08:18 -0000
\r
47 Rather than the insert-buffer. Emacs complains that it is for interactive use
\r
48 and not for use within elisp. So use insert-buffer-substring which does the
\r
49 same thing when not handed any 'begin' 'end' parameters.
\r
51 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
53 emacs/notmuch-maildir-fcc.el | 2 +-
\r
54 1 files changed, 1 insertions(+), 1 deletions(-)
\r
56 diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
\r
57 index f63c1c9..c47bfb3 100644
\r
58 --- a/emacs/notmuch-maildir-fcc.el
\r
59 +++ b/emacs/notmuch-maildir-fcc.el
\r
60 @@ -103,7 +103,7 @@ non-nil, it will write it to cur/, and mark it as read. It should
\r
61 return t if successful, and nil otherwise."
\r
62 (let ((orig-buffer (buffer-name)))
\r
64 - (insert-buffer orig-buffer)
\r
65 + (insert-buffer-substring orig-buffer)
\r
67 (let ((msg-id (notmuch-maildir-fcc-save-buffer-to-tmp destdir)))
\r