tls.el (tls-format-message): Eval-and-compile
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 31 Aug 2015 23:42:45 +0000 (23:42 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 31 Aug 2015 23:42:45 +0000 (23:42 +0000)
lisp/tls.el

index a068675..46891be 100644 (file)
@@ -174,10 +174,11 @@ Used by `tls-certificate-information'."
   :type 'string
   :group 'tls)
 
-(if (fboundp 'format-message)
-    (defalias 'tls-format-message 'format-message)
-  ;; for Emacs < 25, and XEmacs, don't worry about quote translation.
-  (defalias 'tls-format-message 'format))
+(eval-and-compile
+  (if (fboundp 'format-message)
+      (defalias 'tls-format-message 'format-message)
+    ;; for Emacs < 25, and XEmacs, don't worry about quote translation.
+    (defalias 'tls-format-message 'format)))
 
 (defun tls-certificate-information (der)
   "Parse X.509 certificate in DER format into an assoc list."