[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: Lexical vs. dynamic: small examples?
From: |
Emanuel Berg |
Subject: |
Re: [External] : Re: Lexical vs. dynamic: small examples? |
Date: |
Sun, 09 Jan 2022 16:03:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jean Louis wrote:
>> FWIW, I just wrote a tiny library, `dyna-show.el', that
>> defines minor mode `dyna-show-mode', which highlights
>> occurrences of "special" (aka dynamically
>> scoped) variables.
>>
>> It just uses `special-variable-p', which is limited.
>>
>> From the attachment, you can see another limitation:
>> occurrences of a function, e.g. `font-lock-mode', that has
>> the same name as a dynamic variable are also highlighted.
>
> Thanks, it is very helpful for cosmetics of the code.
But here it also has a functional value. Or to be even more
precise, the functional value is also what is appealing, since
I think it started in that end.
--
underground experts united
https://dataswamp.org/~incal