emacs-devel
[Top][All Lists]
Advanced

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

Re: PATCH: Explicitly show how let works on global-variables


From: Emanuel Berg
Subject: Re: PATCH: Explicitly show how let works on global-variables
Date: Thu, 06 Oct 2022 21:34:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Pedro Andres Aranda Gutierrez wrote:

> So, can someone more informed than myself provide an
> informed patch

We should have

- a `dlet' which is always dynamic/special;

- a `let' which is what we have today with `let' and
  ";;; -*- lexical-binding: t -*-", i.e. lexical/static unless
  the variable is already dynamic/special, in which case it
  would remain so only with the new value stacked; and

- a `slet' which is always lexical/static.

Then we would drop ";;; -*- lexical-binding: t -*-" from all
files, we would write three docstrings (`dlet', `let' and
`slet') and that would de it ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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