From: João Távora Date: Thu, 20 Oct 2022 12:49:49 +0000 (+0100) Subject: ; fix warning about order of defvaralias/defconst X-Git-Tag: emacs-29.0.90~1616^2~524^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b3a7003274de7b184b71c4552e6c4518948bcfe;p=emacs.git ; fix warning about order of defvaralias/defconst * lisp/progmodes/eglot.el (eglot-{}): Declare alias before thing being aliased. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 901bf30d4bd..0a7cb2a9aac 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -406,8 +406,8 @@ This can be useful when using docker to run a language server.") `((1 . eglot-diagnostic-tag-unnecessary-face) (2 . eglot-diagnostic-tag-deprecated-face))) -(defconst eglot--{} (make-hash-table :size 1) "The empty JSON object.") (defvaralias 'eglot-{} 'eglot--{}) +(defconst eglot--{} (make-hash-table :size 1) "The empty JSON object.") (defun eglot--executable-find (command &optional remote) "Like Emacs 27's `executable-find', ignore REMOTE on Emacs 26."