Use defalias at the top level
[gnus] / lisp / tls.el
index a068675..544aec5 100644 (file)
@@ -174,10 +174,10 @@ Used by `tls-certificate-information'."
   :type 'string
   :group 'tls)
 
   :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))
+(defalias 'tls-format-message
+  (if (fboundp 'format-message) 'format-message
+    ;; for Emacs < 25, and XEmacs, don't worry about quote translation.
+    'format))
 
 (defun tls-certificate-information (der)
   "Parse X.509 certificate in DER format into an assoc list."
 
 (defun tls-certificate-information (der)
   "Parse X.509 certificate in DER format into an assoc list."