aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2022-12-16 09:29:32 +0000
committerJoão Távora2022-12-16 09:29:40 +0000
commita0806bc7ea916bff49ecb452716c01d42307aec9 (patch)
treef8a35166121ece30b55cca41fa8e11751ee2495a
parent8bf4cdcf79bc3254a9169f28f68922ab83bd4e78 (diff)
downloademacs-a0806bc7ea916bff49ecb452716c01d42307aec9.tar.gz
emacs-a0806bc7ea916bff49ecb452716c01d42307aec9.zip
Eglot: fix discrepant eglot-guess-contact/eglot-command-history
Due to a typo, the defvar eglot--command-history wasn't actually used in eglot-guess-contact as intended. That function used a single-dash-name version of the variable instead. This worked fine, except that two variables were created instead of one, and the one actually being used didn't have any docstring. Rename the variable to eglot-command-history to fix this. It's better than renaming the reference in eglot-guess-contact which would lose user's history for M-x eglot. * lisp/progmodes/eglot.el (eglot-command-history): Rename from eglot--command-history.
-rw-r--r--lisp/progmodes/eglot.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index bb07a06dde8..d4d04b1bc4d 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -941,7 +941,7 @@ PRESERVE-BUFFERS as in `eglot-shutdown', which see."
941 (push sym retval)))) 941 (push sym retval))))
942 retval)) 942 retval))
943 943
944(defvar eglot--command-history nil 944(defvar eglot-command-history nil
945 "History of CONTACT arguments to `eglot'.") 945 "History of CONTACT arguments to `eglot'.")
946 946
947(defun eglot--lookup-mode (mode) 947(defun eglot--lookup-mode (mode)