2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Mon, 18 Jun 2001 19:03:07 +0000 (19:03 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Mon, 18 Jun 2001 19:03:07 +0000 (19:03 +0000)
* qp.el (quoted-printable-decode-region): If called interactively,
use coding-system-for-read.

lisp/ChangeLog
lisp/qp.el

index a8421c3..20e06ed 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * qp.el (quoted-printable-decode-region): If called interactively,
+       use coding-system-for-read.
+
 2001-06-16 09:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * message.el (message-check-news-header-syntax): Check Reply-To.
index 9875a0b..13882fd 100644 (file)
@@ -36,7 +36,9 @@
   "Decode quoted-printable in the region between FROM and TO, per RFC 2045.
 If CODING-SYSTEM is non-nil, decode bytes into characters with that
 coding-system."
-  (interactive "r")
+  (interactive
+   ;; Let the user determine the coding system with "C-x RET c".
+   (list (region-beginning) (region-end) coding-system-for-read))
   (unless (mm-coding-system-p coding-system) ; e.g. `ascii' from Gnus
     (setq coding-system nil))
   (save-excursion