summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp-mnt.el
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2023-12-22 17:53:23 -0600
committerJoão Távora <joaotavora@gmail.com>2023-12-22 17:53:23 -0600
commit9cb85e950dac77b59d48d320c7d40689d019aad4 (patch)
treec5252eacf1c42b8afe18b2b8a27c2d6de5d811d2 /lisp/emacs-lisp/lisp-mnt.el
parent9c86dd52475e0ad65359bc964fbe0d62b9d3e464 (diff)
downloademacs-9cb85e950dac77b59d48d320c7d40689d019aad4.tar.gz
emacs-9cb85e950dac77b59d48d320c7d40689d019aad4.tar.bz2
emacs-9cb85e950dac77b59d48d320c7d40689d019aad4.zip
Eglot: declare eglot-lsp-context bound to non-nil
Otherwise, it'll be really hard to use it in the recommended fashion: (defun my/project-find-function (dir) (when-let ((match (and (bound-and-true-p eglot-lsp-context) (locate-dominating-file dir "some-marker-file")))) `(transient . ,match))) (add-hook 'project-find-functions #'my/project-find-function) because 'bound-and-true-p' will never return t even when the hook is called from eglot--current-project. Github-reference: https://github.com/joaotavora/eglot/discussions/1336 Github-reference: https://github.com/joaotavora/eglot/discussions/1337 * lisp/progmodes/eglot.el (eglot-lsp-context): Declare normally.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions