emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3250651 3/3: Remove call to string-to-multibyte fro


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 3250651 3/3: Remove call to string-to-multibyte from nndoc.el
Date: Sat, 14 Apr 2018 18:53:10 -0400 (EDT)

branch: master
commit 3250651e9cbb691db6dae04f2c13a139d81c6616
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Remove call to string-to-multibyte from nndoc.el
    
    * lisp/gnus/nndoc.el (nndoc-oe-dbx-type-p): My testing shows that
    no matter whether we're in a unibyte or a multibyte buffer, doing
    the looking-at here without the string-to-multibyte, we'll get a
    match.  We did not get a match with the call in and if we were in
    a unibyte buffer, but we presumably never are.
---
 lisp/gnus/nndoc.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el
index 2ed023f..149406a 100644
--- a/lisp/gnus/nndoc.el
+++ b/lisp/gnus/nndoc.el
@@ -765,7 +765,7 @@ from the document.")
   (looking-at "JMF"))
 
 (defun nndoc-oe-dbx-type-p ()
-  (looking-at (string-to-multibyte "\317\255\022\376")))
+  (looking-at "\317\255\022\376"))
 
 (defun nndoc-read-little-endian ()
   (+ (prog1 (char-after) (forward-char 1))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]