|
From: | Emanuel Berg |
Subject: | Re: [External] : Re: Lexical vs. dynamic: small examples? |
Date: | Sat, 28 Aug 2021 03:41:44 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier via Users list for the GNU Emacs text editor wrote: > One example is the variable `pi` which holds the famous > constant but we don't want (let ((pi (get-previous-interval > x))) ...) to temporarily redefine `pi` to > something unrelated. (defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).") (with-suppressed-warnings ((lexical pi)) (defconst pi float-pi "Obsolete since Emacs-23.3. Use `float-pi' instead.")) (make-obsolete-variable 'pi 'float-pi "23.3") (internal-make-var-non-special 'pi) OT, can't (make-obsolete-variable 'pi 'float-pi "23.3") make that docstring ... obsolete? Or perhaps one still wants it so it'll be human-language readable in the code, not just the help/byte-compiler? -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |