+2013-05-21 Glenn Morris <rgm@gnu.org>
+
+ * mh-comp.el (mh-regexp-in-field-p): Fix previous change.
+
2013-05-09 Glenn Morris <rgm@gnu.org>
* mh-e.el (mh-sortm-args, mh-default-folder-for-message-function):
;;; 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 <wohler@newt.com>
;; Maintainer: Bill Wohler <wohler@newt.com>
(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