diff options
author | Mark Lillibridge <mark.lillibridge@hp.com> | 2011-01-01 18:43:26 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2011-01-01 18:43:26 -0800 |
commit | 9430e9882e6331ea9fa300b44b3c980faa711ac0 (patch) | |
tree | b7734bbb2055c04946cfa8c765a11357bbdeece3 /lisp/mail | |
parent | 8de31eeccbb63764ea3fb95eba819282e3cd92cd (diff) | |
download | emacs-9430e9882e6331ea9fa300b44b3c980faa711ac0.tar.gz |
Mail-utils fix for bug#7746. (tiny change)
* lisp/mail/mail-utils.el (mail-strip-quoted-names): Avoid clobbering
an existing temp buffer.
Diffstat (limited to 'lisp/mail')
-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 19ddada1025..ce3036390c9 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el @@ -189,8 +189,7 @@ Return a modified address list." ;; Detect nested comments. (if (string-match "[ \t]*(\\([^)\\]\\|\\\\.\\|\\\\\n\\)*(" address) ;; Strip nested comments. - (with-current-buffer (get-buffer-create " *temp*") - (erase-buffer) + (with-temp-buffer (insert address) (set-syntax-table lisp-mode-syntax-table) (goto-char 1) @@ -203,8 +202,7 @@ Return a modified address list." (forward-sexp 1) (error (goto-char (point-max)))) (point)))) - (setq address (buffer-string)) - (erase-buffer)) + (setq address (buffer-string))) ;; Strip non-nested comments an easier way. (while (setq pos (string-match ;; This doesn't hack rfc822 nested comments |