From: Glenn Morris Date: Tue, 21 May 2013 01:59:36 +0000 (-0400) Subject: * lisp/mh-e/mh-comp.el (mh-regexp-in-field-p): Fix previous change. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~229^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=195eea0f0b1dfe11ddc87117ec4e486379588be7;p=emacs.git * lisp/mh-e/mh-comp.el (mh-regexp-in-field-p): Fix previous change. --- diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index f256e3841e4..d85ae04a16c 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,7 @@ +2013-05-21 Glenn Morris + + * mh-comp.el (mh-regexp-in-field-p): Fix previous change. + 2013-05-09 Glenn Morris * mh-e.el (mh-sortm-args, mh-default-folder-for-message-function): diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 9610774b414..782537aee2d 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -1,7 +1,6 @@ ;;; mh-comp.el --- MH-E functions for composing and sending messages -;; Copyright (C) 1993, 1995, 1997, 2000-2013 Free Software Foundation, -;; Inc. +;; Copyright (C) 1993, 1995, 1997, 2000-2013 Free Software Foundation, Inc. ;; Author: Bill Wohler ;; Maintainer: Bill Wohler @@ -1204,18 +1203,18 @@ discarded." (save-excursion (let ((search-result nil)) (while fields - (let ((field (car fields)) - (syntax-table - (or mh-regexp-in-field-syntax-table - (let ((case-fold-search t)) - (cond - ((string-match field "^To$\\|^[BD]?cc$\\|^From$") - mh-addr-syntax-table) - ((string-match field "^Fcc$") - mh-fcc-syntax-table) - (t - (syntax-table))) - )))) + (let* ((field (car fields)) + (syntax-table + (or mh-regexp-in-field-syntax-table + (let ((case-fold-search t)) + (cond + ((string-match field "^To$\\|^[BD]?cc$\\|^From$") + mh-addr-syntax-table) + ((string-match field "^Fcc$") + mh-fcc-syntax-table) + (t + (syntax-table))) + )))) (if (and (mh-goto-header-field field) (set-syntax-table syntax-table) (re-search-forward