A name a body form defines is bound where it is written

A def, a pattern def and a defun in a body made their names visible to the
forms after them only, so at the name itself nothing bound it: no inlay
hint, and no local hover. A position on such a name is now that name's
binding.

🤖 Generated with [ECA](https://eca.dev)

Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
Linus Björnstam 2026-10-22 14:03:56 +02:00
parent 471b49d9e4
commit bcfcc5500b
3 changed files with 18 additions and 6 deletions

View file

@ -192,8 +192,7 @@ With eglot instead:
location in the message.
- Hover for a special form (`record-ref`, `loop`, `match`), which has no
definition to find and no doc.
- The type of an expression that is not a name, and of a local `defun`'s
name where it is defined, which is not seen as a local there.
- The type of an expression that is not a name.
- Completion of record fields after `record-ref`, of module paths in an
`import`, or of keyword arguments. A string that began on an earlier line
is not seen as one, so a multi-line string gets completions.