unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 65742@debbugs.gnu.org
Subject: bug#65742: 30.0.50; default-toplevel-value and forwarded symbols
Date: Mon, 04 Sep 2023 21:55:09 +0200	[thread overview]
Message-ID: <m2ledl3e8y.fsf@Pro.fritz.box> (raw)
In-Reply-To: <jwv7cp5pwt8.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 04 Sep 2023 15:24:31 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Function default-toplevel-value does not take let-bindings for forwarded
>> symbols into account.
>>
>> (progn
>>   (defvar my-var nil)
>>   (setq my-var t)
>>   (let ((my-var :let))
>>     (default-toplevel-value 'my-var)))
>> => t
>>
>> (progn
>>   (setq lexical-binding t)
>>   (let ((lexical-binding :let))
>>     (default-toplevel-value 'lexical-binding)))
>> => nil
>
> Looks right to me: `lexical-binding` is set buffer-locally by the
> `setq`, so the global/toplevel value is not affected.

Right, I forgot the setq.  How embarrasing.  Closing.





      reply	other threads:[~2023-09-04 19:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-04 19:02 bug#65742: 30.0.50; default-toplevel-value and forwarded symbols Gerd Möllmann
2023-09-04 19:18 ` Eli Zaretskii
2023-09-04 19:24 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-04 19:55   ` Gerd Möllmann [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ledl3e8y.fsf@Pro.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=65742@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).