1 Return-Path: <servilio@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 6A28F431FD0
\r
6 for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:09:42 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id p2AUCozXeVlj for <notmuch@notmuchmail.org>;
\r
17 Sun, 13 Mar 2011 22:09:40 -0700 (PDT)
\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com
\r
19 [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 606B3431FB5
\r
22 for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:09:39 -0700 (PDT)
\r
23 Received: by fxm11 with SMTP id 11so2821420fxm.26
\r
24 for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:09:37 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=domainkey-signature:mime-version:date:message-id:subject:from:to
\r
27 :content-type; bh=N+UkAdpG7Hy3VqVhTwQSLUkfIz0pPYBGlsjIC/McxMs=;
\r
28 b=r3Y2uKMwa9LHRW9VbqXcrGTaffP3RdaaqfryGB7A/N0Fi6Jxf7BWD+24TOMsdKyBrG
\r
29 zBIrS+GAoRJuxAVvZOqbiOEuuRxU63QY+XQMk3hMRrY7ox0UQvoHYlS/687xP+vylVrt
\r
30 9KUWH1wCrz2Qnhwp2SqmD2R1OXtYIpHMK8/Tg=
\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
32 h=mime-version:date:message-id:subject:from:to:content-type;
\r
33 b=VBlCJ/dTPhaB6bZLdGafL5Qx/Vf3eIzaWXcvS3APjutH1Q/OYaS8q/SeRWpGYhJMXN
\r
34 hNIDtbWjG2LHp1/aUVeCG+tk5b8N2IU5EuwDpR/VBtdYQImOt7CwyZecgsHjbQS7NS9q
\r
35 2Jn+TRER7mkxJj6mgylcSTy/+Nkj8YVRRtRV4=
\r
37 Received: by 10.223.15.152 with SMTP id k24mr5564591faa.96.1300079377170; Sun,
\r
38 13 Mar 2011 22:09:37 -0700 (PDT)
\r
39 Received: by 10.223.102.73 with HTTP; Sun, 13 Mar 2011 22:09:37 -0700 (PDT)
\r
40 Date: Mon, 14 Mar 2011 01:09:37 -0400
\r
41 Message-ID: <AANLkTi=Hvec41zm0dJKKt=-WiU=cYdVjZ0q2hvGP0b6w@mail.gmail.com>
\r
42 Subject: [PATCH] Eliminate redundant code.
\r
43 From: servilio <servilio@gmail.com>
\r
44 To: notmuch <notmuch@notmuchmail.org>
\r
45 Content-Type: text/plain; charset=UTF-8
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Mon, 14 Mar 2011 05:09:43 -0000
\r
60 There is no need to move the cursor to the position if you can
\r
61 retrieve its value directly.
\r
63 emacs/notmuch-address.el | 4 ++--
\r
64 1 files changed, 2 insertions(+), 2 deletions(-)
\r
66 diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
\r
67 index 1a7c577..52e320d 100644
\r
68 --- a/emacs/notmuch-address.el
\r
69 +++ b/emacs/notmuch-address.el
\r
70 @@ -48,8 +48,8 @@ line."
\r
71 (let* ((end (point))
\r
72 (beg (save-excursion
\r
73 (re-search-backward "\\(\\`\\|[\n:,]\\)[ \t]*")
\r
74 - (goto-char (match-end 0))
\r
78 (orig (buffer-substring-no-properties beg end))
\r
79 (completion-ignore-case t)
\r
80 (options (notmuch-address-options orig))
\r