(rfc2047-encode-region): Do error out on invalid
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 18 Oct 2003 18:37:37 +0000 (18:37 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 18 Oct 2003 18:37:37 +0000 (18:37 +0000)
strings.

lisp/ChangeLog
lisp/rfc2047.el

index f4f0d48..6099d87 100644 (file)
@@ -1,5 +1,8 @@
 2003-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * rfc2047.el (rfc2047-encode-region): Do error out on invalid
+       strings. 
+
        * nntp.el (nntp-retrieve-headers-with-xover): Get error messages
        right. 
 
index bc54575..d4d6e96 100644 (file)
@@ -378,8 +378,8 @@ Dynamically bind `rfc2047-encoding-type' to change that."
                    (rfc2047-encode start end)
                    (setq last-encoded t)))))
            (error
-            (message "Invalid data for rfc2047 encoding: %s"
-                     (buffer-substring b e)))))))
+            (error "Invalid data for rfc2047 encoding: %s"
+                   (buffer-substring b e)))))))
     (rfc2047-fold-region b (point))))
 
 (defun rfc2047-encode-string (string)