X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Frfc2047.el;h=3b76718755a7bbce51590571e0ccd40b3dcf4dd3;hb=e2696774a2e225ea60d46cc665d4232c80412731;hp=adbbd4ef3971c86a9eb3c6d7b572433f10e6a191;hpb=4a7c08361661e63a7b76a28830099076fcb197ba;p=elisp%2Fgnus.git- diff --git a/lisp/rfc2047.el b/lisp/rfc2047.el index adbbd4e..3b76718 100644 --- a/lisp/rfc2047.el +++ b/lisp/rfc2047.el @@ -427,18 +427,18 @@ Dynamically bind `rfc2047-encoding-type' to change that." (progn (rfc2047-encode start end) (setq last-encoded t)) - (setq last-encoded nil)) - ))) + (setq last-encoded nil))))) (error (error "Invalid data for rfc2047 encoding: %s" (mm-replace-in-string orig-text "[ \t\n]+" " "))))))) - (rfc2047-fold-region b (point)))) + (rfc2047-fold-region b (point)) + (goto-char (point-max)))) (defun rfc2047-encode-string (string) "Encode words in STRING. By default, the string is treated as containing addresses (see `rfc2047-encoding-type')." - (with-temp-buffer + (mm-with-multibyte-buffer (insert string) (rfc2047-encode-region (point-min) (point-max)) (buffer-string)))