emacs-devel
[Top][All Lists]
Advanced

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

Re: defvar without value


From: Stefan Monnier
Subject: Re: defvar without value
Date: Wed, 01 Apr 2020 22:37:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> we/you/someone wanted to add `fluid-let'
> (i.e. a dynamically binding `let') anyway.

It's in `master`, called `dlet`, but it's orthogonal to `defvar-dynamic`.

>> Similarly, we could add something like (defvar-lexical VAR VAL) which
>> defines the var and sets it but doesn't set the `special` bit
> Uses of that exceed my current imagination.

How quickly one gets used to the idea of dynamic scoping, eh?

    % grep internal-make-var-non-special **/*.el
    lisp/emacs-lisp/float-sup.el:(internal-make-var-non-special 'pi)
    lisp/startup.el:(internal-make-var-non-special 'argv)
    lisp/startup.el:(internal-make-var-non-special 'argi)
    %


-- Stefan




reply via email to

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