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.
| Status | Job ID | Name | Coverage | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Build Images | |||||||||
| failed |
#78788
|
build-image-inotify |
00:05:24
|
|
|||||
| Normal | |||||||||
| skipped |
#78789
|
test-all-inotify |
|
||||||
| Platform Images | |||||||||
| failed |
#78790
|
build-image-eglot |
01:33:00
|
|
|||||
| failed |
#78792
|
build-image-gnustep |
00:06:48
|
|
|||||
| failed |
#78791
|
build-image-tree-sitter |
01:33:23
|
|
|||||
| Platforms | |||||||||
| skipped |
#78793
|
test-eglot |
|
||||||
| skipped |
#78795
|
test-gnustep |
|
||||||
| skipped |
#78794
|
test-tree-sitter |
|
||||||
| Native Comp Images | |||||||||
| failed |
#78796
|
build-native-comp-speed2 |
00:08:17
|
|
|||||
| Native Comp | |||||||||
| skipped |
#78797
|
test-native-comp-speed2 |
|
||||||
| Name | Stage | Failure | ||
|---|---|---|---|---|
|
failed
|
build-image-tree-sitter | Platform Images | ||
|
||||
|
failed
|
build-image-eglot | Platform Images | ||
|
||||
|
failed
|
build-native-comp-speed2 | Native Comp Images | ||
|
||||
|
failed
|
build-image-gnustep | Platform Images | ||
|
||||
|
failed
|
build-image-inotify | Build Images | ||
|
||||