X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fqp.el;h=8c3b82892ca0fb04b2b8478c843fad993facc79f;hb=2ecd81774b845daf6b0c3a8976e46304236b02dd;hp=697de6c1072b560f661cf2d8b8648360ce696aad;hpb=b2c47fe4f8a6a15f37cc7ca12ae7e72ae3b4c385;p=gnus diff --git a/lisp/qp.el b/lisp/qp.el index 697de6c10..8c3b82892 100644 --- a/lisp/qp.el +++ b/lisp/qp.el @@ -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 @@ -63,12 +65,12 @@ coding-system." 16))) (insert byte) (delete-char 3) - ;; Why backward-char??? + ;; Why backward-char??? ;;(unless (eq byte 61) ;; 61 is not ?= in XEmacs ;; (backward-char)) )) (t - (error "Malformed quoted-printable text") + (message "Malformed quoted-printable text") (forward-char))))) (if coding-system (mm-decode-coding-region (point-min) (point-max) coding-system)))))