X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fqp.el;h=52f699937e261cc5f742c378b85989ebc382ec18;hb=47bc3a7ccbdea93f85546cfac45ee9ebdb32d310;hp=697de6c1072b560f661cf2d8b8648360ce696aad;hpb=9331b3f125ee0bd41c8195e2c76c2f3a7991657b;p=elisp%2Fgnus.git- diff --git a/lisp/qp.el b/lisp/qp.el index 697de6c..52f6999 100644 --- a/lisp/qp.el +++ b/lisp/qp.el @@ -35,8 +35,13 @@ (defun quoted-printable-decode-region (from to &optional coding-system) "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") +coding-system. + +Interactively, you can supply the CODING-SYSTEM argument +with \\[universal-coding-system-argument]." + (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 +68,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))))) @@ -135,7 +140,7 @@ encode lines starting with \"From\"." (if (looking-at "From ") (replace-match "From=20" nil t) (if (looking-at "-") - (replace-match "=2D" nil t)))) + (replace-match "=2D" nil t)))) (end-of-line) ;; Fold long lines. (while (> (current-column) 76) ; tab-width must be 1.