--- /dev/null
+Return-Path: <servilio@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id C5E2B431FD0\r
+ for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:10:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id nGoTV3H+Kfna for <notmuch@notmuchmail.org>;\r
+ Sun, 13 Mar 2011 22:10:33 -0700 (PDT)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+ [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 52946431FB5\r
+ for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:10:33 -0700 (PDT)\r
+Received: by fxm11 with SMTP id 11so2821980fxm.26\r
+ for <notmuch@notmuchmail.org>; Sun, 13 Mar 2011 22:10:32 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+ h=domainkey-signature:mime-version:date:message-id:subject:from:to\r
+ :content-type; bh=AziemhImU7fzGRaISXtVibhtZm0a2eJamQ8CUZLu/FM=;\r
+ b=fEGs+EICIP5NVg5jH05R7EYheed5HtgAYYXkRD1Al7/eTUgqFH4TbyeIBeg5fCc1dL\r
+ Xc8p0fM79z9LIqYM+Fbo3BTuW2JDpCPfOQs5NN3Bj9kqlDoimUwT5KmcRlT6cbAp0qtz\r
+ DUei70C0QNbEQr2qlT1nmWfY5C0X9Z2dk10Cg=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+ h=mime-version:date:message-id:subject:from:to:content-type;\r
+ b=cSMSTcO4ZPKlXeK1K64FPKYFoaXrglZtIF/s/hrT9TC/TWEFsk+AbLDCX3A8yZzrdc\r
+ Il5dwLhPzw1V5ZBcMrvfxGshMCrYg6Cvau4NUgPW117o7nhDyURreFEQKRw6MVdRJcoc\r
+ JGHWq5lrRnoVjjTShg5yVVLo9vAEGYLxsu/xA=\r
+MIME-Version: 1.0\r
+Received: by 10.223.127.210 with SMTP id h18mr2716236fas.77.1300079432077;\r
+ Sun, 13 Mar 2011 22:10:32 -0700 (PDT)\r
+Received: by 10.223.102.73 with HTTP; Sun, 13 Mar 2011 22:10:32 -0700 (PDT)\r
+Date: Mon, 14 Mar 2011 01:10:32 -0400\r
+Message-ID: <AANLkTi=ftNF3yUo2q4u-Yr57fRZvjsTnH6oPOmfj_3se@mail.gmail.com>\r
+Subject: [PATCH] Save global match data when looking for the beginning of\r
+ field.\r
+From: servilio <servilio@gmail.com>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Content-Type: text/plain; charset=UTF-8\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 14 Mar 2011 05:10:38 -0000\r
+\r
+Thus avoid disrupting usage of regular expressions functions\r
+elsewhere.\r
+---\r
+ emacs/notmuch-address.el | 6 +++---\r
+ 1 files changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el\r
+index 52e320d..2960da9 100644\r
+--- a/emacs/notmuch-address.el\r
++++ b/emacs/notmuch-address.el\r
+@@ -47,9 +47,9 @@ line."\r
+ (defun notmuch-address-expand-name ()\r
+ (let* ((end (point))\r
+ (beg (save-excursion\r
+- (re-search-backward "\\(\\`\\|[\n:,]\\)[ \t]*")\r
+- (match-end 0)\r
+- ))\r
++ (save-match-data\r
++ (re-search-backward "\\(\\`\\|[\n:,]\\)[ \t]*")\r
++ (match-end 0))))\r
+ (orig (buffer-substring-no-properties beg end))\r
+ (completion-ignore-case t)\r
+ (options (notmuch-address-options orig))\r
+-- \r
+1.7.4.1\r