[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18059: 24.3.92; defvar and special variables
From: |
Michael Heerdegen |
Subject: |
bug#18059: 24.3.92; defvar and special variables |
Date: |
Mon, 19 Feb 2018 02:44:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Noam Postavsky <npostavs@gmail.com> writes:
> This let-block thing feels more like a bug to me, so I'm inclined to
> leave it out of the manual.
Maybe somebody could clarify the rationale behind the behavior?
It would not be good to leave this undocumented - it is something people
actually do.
> I'm also not so sure about putting in examples into the manual; the
> shortest and simplest I could come up with is this, but I don't know
> that it's worth putting in.
>
> This example demonstrates the effects of using @code{defvar} without
> an initial value:
>
> @example
> @group
> (let ((x 'lexical))
> (defun get-lexical-x ()
> x))
> (defvar x)
> (defun get-dynamic-x ()
> x)
>
> (let ((x 'dynamic))
> (list (get-dynamic-x)
> (get-lexical-x)))
> @result{} (dynamic lexical)
> @end group
> @end example
Obviously I would like something like this being added.
Michael.
- bug#18059: 24.3.92; defvar and special variables, (continued)
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/10
- bug#18059: 24.3.92; defvar and special variables, Stefan Monnier, 2018/02/11
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/11
- bug#18059: 24.3.92; defvar and special variables, Michael Heerdegen, 2018/02/11
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/11
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/13
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/18
- bug#18059: 24.3.92; defvar and special variables,
Michael Heerdegen <=
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Drew Adams, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Drew Adams, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Noam Postavsky, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Drew Adams, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Stefan Monnier, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Michael Heerdegen, 2018/02/21
- bug#18059: 24.3.92; defvar and special variables, Stefan Monnier, 2018/02/23