]> git.eshelyaron.com Git - emacs.git/commit
Eglot: fix discrepant eglot-guess-contact/eglot-command-history
authorJoão Távora <joaotavora@gmail.com>
Fri, 16 Dec 2022 09:29:32 +0000 (09:29 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 16 Dec 2022 09:29:40 +0000 (09:29 +0000)
commita0806bc7ea916bff49ecb452716c01d42307aec9
treef8a35166121ece30b55cca41fa8e11751ee2495a
parent8bf4cdcf79bc3254a9169f28f68922ab83bd4e78
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.
lisp/progmodes/eglot.el