From: Bill Wohler Date: Mon, 30 Jan 2006 00:53:30 +0000 (+0000) Subject: (mh-insert-fields): Handle nil values. Rmail, at least, will deliver X-Git-Tag: emacs-pretest-22.0.90~4499 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2c30782ecd2e0540e2989a0c531ccdc78869c7c;p=emacs.git (mh-insert-fields): Handle nil values. Rmail, at least, will deliver them to us. --- diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 3b7e56a571d..d9df3290743 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,19 @@ +2006-01-29 Bill Wohler + + * mh-comp.el (mh-insert-fields): Handle nil values. Rmail, at + least, will deliver them to us. + + * mh-e.el (mh-after-commands-processed-hook) + (mh-before-commands-processed-hook): Specify what sort of requests + in docstring. + + * mh-folder.el (mh-folder-mode): Use add-to-list to modify + minor-mode-alias. + + * mh-letter.el (mh-letter-menu): Remove. Defvar no longer needed + to shush compiler. + (mh-letter-mode): Remove Mail menu. + 2006-01-29 Bill Wohler The Great Cleanup diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index d9ce48a959b..529aac777d2 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -870,7 +870,8 @@ Do not insert any pairs whose value is the empty string." (value (car (cdr name-values)))) (if (not (string-match "^.*:$" field-name)) (setq field-name (concat field-name ":"))) - (cond ((equal value "") + (cond ((or (null value) + (equal value "")) nil) ((mh-position-on-field field-name) (insert " " (or value "")))