ntlm.el (ntlm-unibyte-string): Make it a macro, not an alias
authorKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 6 Sep 2015 23:42:15 +0000 (23:42 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 6 Sep 2015 23:42:15 +0000 (23:42 +0000)
lisp/ntlm.el

index f31257e..1550528 100644 (file)
@@ -136,11 +136,10 @@ is not given."
     (if (fboundp 'string-make-unibyte)
        `(string-make-unibyte ,string)
       string))
     (if (fboundp 'string-make-unibyte)
        `(string-make-unibyte ,string)
       string))
-  (defalias 'ntlm-unibyte-string
+  (defmacro ntlm-unibyte-string (&rest bytes)
     (if (fboundp 'unibyte-string)
     (if (fboundp 'unibyte-string)
-       'unibyte-string
-      (lambda (&rest bytes)
-       (concat (apply #'vector bytes))))))
+       `(unibyte-string ,@bytes)
+      `(concat (vector ,@bytes)))))
 
 (eval-and-compile
   (autoload 'sha1 "sha1")
 
 (eval-and-compile
   (autoload 'sha1 "sha1")