]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation warning in qp.el
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Jun 2019 23:43:58 +0000 (01:43 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Jun 2019 23:43:58 +0000 (01:43 +0200)
* lisp/mail/qp.el (quoted-printable-encode-region): No need to
convert the regexp to multibyte before searching.

lisp/mail/qp.el

index 5b49741188622fc70cdedf25d2862beff2dc7c81..803d78602e55b5cdf4401627914e84f5b0e38ad2 100644 (file)
@@ -115,8 +115,7 @@ encode lines starting with \"From\"."
     (setq class "\010-\012\014\040-\074\076-\177"))
   (save-excursion
     (goto-char from)
-    (if (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]")
-                          to t)
+    (if (re-search-forward "[^\x0-\x7f\x80-\xff]" to t)
        (error "Multibyte character in QP encoding region"))
     (save-restriction
       (narrow-to-region from to)