auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extending TeX-read-key-val


From: Tassilo Horn
Subject: Re: Extending TeX-read-key-val
Date: Thu, 28 Oct 2021 06:54:13 +0200
User-agent: mu4e 1.7.4; emacs 29.0.50

Hi all,

> Maybe I drop a line to emacs-devel mailing list and ask.

Please do.

> At any rate, I think I can take the suggestion given by Keita once I
> update `TeX-read-key-val' in latex.el.

Agreed.

>> (info "(elisp) Accessing Variables") doesn't enlighten me, too.
>
> Maybe a relevant sentence is this one in 12.10.3 Lexical Binding[1]:
>
>     Note that unlike dynamic variables which are tied to the symbol
>     object itself, the relationship between lexical variables and
>     symbols is only present in the interpreter (or compiler).
>     Therefore, functions which take a symbol argument (like
>     symbol-value, boundp, and set) can only retrieve or modify a
>     variable’s dynamic binding (i.e., the contents of its symbol’s value
>     cell).
>
> Which then doesn't fit to the docstring above.

Indeed.  I think what is meant is that with

  (let ((x 17))
    (lambda () (incf x)))

there is no symbol x but the lambda is actually a closure

  (closure ((x . 17) t) nil (incf x))

where the value of x is stored in its closure environment.  But here,
symbol-value will error anyway.  I see no way to construct something
where there is both a symbol *and* a binding in the lexical environment.

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]