aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-07-20 17:54:10 +0000
committerRichard M. Stallman1995-07-20 17:54:10 +0000
commitb94f28eef7ad39b05228394cf0450f9da2c2373f (patch)
tree69550ab7a2c6c6c40f7836387627e1f238972310
parente2d79b751984a5d87b28d2186641d443c5a7e3c1 (diff)
downloademacs-b94f28eef7ad39b05228394cf0450f9da2c2373f.tar.gz
emacs-b94f28eef7ad39b05228394cf0450f9da2c2373f.zip
(mail-fetch-field): Use buffer-substring-no-properties.
-rw-r--r--lisp/mail/mail-utils.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el
index 3798ab78dce..6cf718060c7 100644
--- a/lisp/mail/mail-utils.el
+++ b/lisp/mail/mail-utils.el
@@ -174,7 +174,8 @@ If third arg ALL is non-nil, concatenate all such fields with commas between."
174 (forward-char -1)) 174 (forward-char -1))
175 (setq value (concat value 175 (setq value (concat value
176 (if (string= value "") "" ", ") 176 (if (string= value "") "" ", ")
177 (buffer-substring opoint (point)))))) 177 (buffer-substring-no-properties
178 opoint (point))))))
178 (and (not (string= value "")) value)) 179 (and (not (string= value "")) value))
179 (if (re-search-forward name nil t) 180 (if (re-search-forward name nil t)
180 (progn 181 (progn
@@ -186,7 +187,7 @@ If third arg ALL is non-nil, concatenate all such fields with commas between."
186 (forward-char -1) 187 (forward-char -1)
187 (while (member (preceding-char) '(? ?\t)) 188 (while (member (preceding-char) '(? ?\t))
188 (forward-char -1)) 189 (forward-char -1))
189 (buffer-substring opoint (point))))))))) 190 (buffer-substring-no-properties opoint (point)))))))))
190 191
191;; Parse a list of tokens separated by commas. 192;; Parse a list of tokens separated by commas.
192;; It runs from point to the end of the visible part of the buffer. 193;; It runs from point to the end of the visible part of the buffer.