From 11c911574972976fbf39cdfb392d469d61f688da Mon Sep 17 00:00:00 2001 From: Tobias Rittweiler Date: Fri, 8 May 2020 00:51:44 +0200 Subject: [PATCH] Fix "free variable" warning * eglot.el (eglot-events-buffer): Use `eglot-current-server' instead of `eglot--cached-server' because the latter is declared later in the file. GitHub-reference: fix https://github.com/joaotavora/eglot/issues/460 --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b5f05ce7e31..8dae0b70263 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -810,7 +810,7 @@ INTERACTIVE is t if called interactively." (defun eglot-events-buffer (server) "Display events buffer for SERVER. Use current server's or first available Eglot events buffer." - (interactive (list eglot--cached-server)) + (interactive (list (eglot-current-server))) (let ((buffer (if server (jsonrpc-events-buffer server) (cl-find "\\*EGLOT.*events\\*" (buffer-list) -- 2.39.2