diff options
| author | Richard M. Stallman | 1996-04-11 17:34:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-11 17:34:28 +0000 |
| commit | fb83f5506c2fb955a8c227c0259af820bc5368be (patch) | |
| tree | 80a0341b1b329339a1c2ea1ee89c82b63bc92097 | |
| parent | 4a0f786c4908e37175a1578d54e21d0c21f44b63 (diff) | |
| download | emacs-fb83f5506c2fb955a8c227c0259af820bc5368be.tar.gz emacs-fb83f5506c2fb955a8c227c0259af820bc5368be.zip | |
(mail-fetch-field): Use skip-chars-backward
to back over whitespace; don't back up past opoint.
| -rw-r--r-- | lisp/mail/mail-utils.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index 6feea415765..42bcbd38bd3 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el | |||
| @@ -183,8 +183,7 @@ If third arg ALL is non-nil, concatenate all such fields with commas between." | |||
| 183 | (looking-at "[ \t]"))) | 183 | (looking-at "[ \t]"))) |
| 184 | ;; Back up over newline, then trailing spaces or tabs | 184 | ;; Back up over newline, then trailing spaces or tabs |
| 185 | (forward-char -1) | 185 | (forward-char -1) |
| 186 | (while (member (preceding-char) '(? ?\t)) | 186 | (skip-chars-backward " \t" opoint) |
| 187 | (forward-char -1)) | ||
| 188 | (setq value (concat value | 187 | (setq value (concat value |
| 189 | (if (string= value "") "" ", ") | 188 | (if (string= value "") "" ", ") |
| 190 | (buffer-substring-no-properties | 189 | (buffer-substring-no-properties |
| @@ -198,8 +197,7 @@ If third arg ALL is non-nil, concatenate all such fields with commas between." | |||
| 198 | (looking-at "[ \t]"))) | 197 | (looking-at "[ \t]"))) |
| 199 | ;; Back up over newline, then trailing spaces or tabs | 198 | ;; Back up over newline, then trailing spaces or tabs |
| 200 | (forward-char -1) | 199 | (forward-char -1) |
| 201 | (while (member (preceding-char) '(? ?\t)) | 200 | (skip-chars-backward " \t" opoint) |
| 202 | (forward-char -1)) | ||
| 203 | (buffer-substring-no-properties opoint (point))))))))) | 201 | (buffer-substring-no-properties opoint (point))))))))) |
| 204 | 202 | ||
| 205 | ;; Parse a list of tokens separated by commas. | 203 | ;; Parse a list of tokens separated by commas. |