From: Robin Tarsiger <rtt@dasyatidae.com>
To: arash@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Question reg. docstring of symbol-value
Date: Tue, 2 Nov 2021 15:59:58 -0500 [thread overview]
Message-ID: <7dc3e4d9-9e99-649b-4f74-93cd4c3bcb23@dasyatidae.com> (raw)
In-Reply-To: <8635oegu06.fsf@gnu.org>
Arash Esbati wrote:
> Is the intention to say "..., this returns the global value outside of
> any lexical scope for symbols not marked as special" or something like
> that? Or am I missing something?
From the documentation for defvar:
> The ‘defvar’ form also declares the variable as "special", so that it
> is always dynamically bound even if ‘lexical-binding’ is t.
Basically, special variables don't get lexically bound in the first place,
so the let doesn't introduce a lexical binding for that variable; it
introduces a dynamic one, and dynamic bindings affect symbol-value.
-RTT
next prev parent reply other threads:[~2021-11-02 20:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 20:52 Question reg. docstring of symbol-value Arash Esbati
2021-11-02 20:59 ` Robin Tarsiger [this message]
2021-11-03 7:38 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7dc3e4d9-9e99-649b-4f74-93cd4c3bcb23@dasyatidae.com \
--to=rtt@dasyatidae.com \
--cc=arash@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.