diff options
| author | Paul Reilly | 2002-03-20 08:13:21 +0000 |
|---|---|---|
| committer | Paul Reilly | 2002-03-20 08:13:21 +0000 |
| commit | 7fab5ded52a6c1c138bca5fa2333d6ebad52ebc0 (patch) | |
| tree | 0ebada29a4da22b94ac0c870ec71728230a87ee2 | |
| parent | 9ab7ff8bf4cf1169dbec7d974d3659caeb429c5b (diff) | |
| download | emacs-7fab5ded52a6c1c138bca5fa2333d6ebad52ebc0.tar.gz emacs-7fab5ded52a6c1c138bca5fa2333d6ebad52ebc0.zip | |
Eliminate compilation warnings due to `rfc822-addresses'.
(rmail-dont-reply-to): Eliminate `pos' as a free variable for a
warning free compile.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/mail/mail-utils.el | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 673a52a6d53..c71fc737db2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2002-03-20 pmr-sav <pmr-sav@hamm.pajato.com> | ||
| 2 | |||
| 3 | * mail-utils.el: | ||
| 4 | Eliminate compilation warnings due to `rfc822-addresses'. | ||
| 5 | (rmail-dont-reply-to): Eliminate `pos' as a free variable for a | ||
| 6 | warning free compile. | ||
| 7 | |||
| 1 | 2002-03-20 Michael Kifer <kifer@cs.stonybrook.edu> | 8 | 2002-03-20 Michael Kifer <kifer@cs.stonybrook.edu> |
| 2 | 9 | ||
| 3 | * ediff-diff.el (ediff-install-fine-diff-if-necessary): take | 10 | * ediff-diff.el (ediff-install-fine-diff-if-necessary): take |
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index fb5c7d1330e..db31f3d4064 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el | |||
| @@ -133,6 +133,8 @@ we expect to find and remove the wrapper characters =?ISO-8859-1?Q?....?=." | |||
| 133 | (char-after (1+ (match-beginning 1))))))) | 133 | (char-after (1+ (match-beginning 1))))))) |
| 134 | t t)))))) | 134 | t t)))))) |
| 135 | 135 | ||
| 136 | (eval-when-compile (require 'rfc822)) | ||
| 137 | |||
| 136 | (defun mail-strip-quoted-names (address) | 138 | (defun mail-strip-quoted-names (address) |
| 137 | "Delete comments and quoted strings in an address list ADDRESS. | 139 | "Delete comments and quoted strings in an address list ADDRESS. |
| 138 | Also delete leading/trailing whitespace and replace FOO <BAR> with just BAR. | 140 | Also delete leading/trailing whitespace and replace FOO <BAR> with just BAR. |
| @@ -244,8 +246,9 @@ the comma-separated list. The pruned list is returned." | |||
| 244 | (setq cur-pos (and cur-pos (1+ cur-pos)) | 246 | (setq cur-pos (and cur-pos (1+ cur-pos)) |
| 245 | start-pos cur-pos)))))) | 247 | start-pos cur-pos)))))) |
| 246 | ;; get rid of any trailing commas | 248 | ;; get rid of any trailing commas |
| 247 | (if (setq pos (string-match "[ ,\t\n]*\\'" destinations)) | 249 | (let ((pos (string-match "[ ,\t\n]*\\'" destinations))) |
| 248 | (setq destinations (substring destinations 0 pos))) | 250 | (if pos |
| 251 | (setq destinations (substring destinations 0 pos)))) | ||
| 249 | ;; remove leading spaces. they bother me. | 252 | ;; remove leading spaces. they bother me. |
| 250 | (if (string-match "\\(\\s \\|,\\)*" destinations) | 253 | (if (string-match "\\(\\s \\|,\\)*" destinations) |
| 251 | (substring destinations (match-end 0)) | 254 | (substring destinations (match-end 0)) |