]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-decode-quoted-printable): Use delete-region
authorKenichi Handa <handa@m17n.org>
Sat, 20 May 2000 00:09:21 +0000 (00:09 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 20 May 2000 00:09:21 +0000 (00:09 +0000)
and insert, not subst-char-in-region.

lisp/mail/rmail.el

index 1a32ef1a9da4d9b93712ad749f26b3edc2c5e69c..c243994cbe988cd2670f5de2767d4d2d4140067d 100644 (file)
@@ -1691,11 +1691,10 @@ It returns t if it got any new messages."
           (delete-char -1)
           (delete-char 1))
          ((looking-at "[0-9A-F][0-9A-F]")
-          (subst-char-in-region
-           (1- (point)) (point) ?=
-           (rmail-hex-string-to-integer
-            (buffer-substring (point) (+ 2 (point)))))
-          (delete-char 2))
+          (let ((byte (rmail-hex-string-to-integer
+                       (buffer-substring (point) (+ 2 (point))))))
+            (delete-region (1- (point)) (+ 2 (point)))
+            (insert byte)))
          ((looking-at "=")
           (delete-char 1))
          (t