* Is setq-default within a dynamic let-binding supposed to work?
@ 2015-02-05 3:09 Kelly Dean
2015-02-05 4:10 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Kelly Dean @ 2015-02-05 3:09 UTC (permalink / raw)
To: emacs-devel
(let ((foo 'bar)) (setq-default foo 'baz))
foo → Lisp error: (void-variable foo)
Is that behavior correct? Or maybe you're not supposed to do that, and the behavior is undefined?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is setq-default within a dynamic let-binding supposed to work?
2015-02-05 3:09 Is setq-default within a dynamic let-binding supposed to work? Kelly Dean
@ 2015-02-05 4:10 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2015-02-05 4:10 UTC (permalink / raw)
To: Kelly Dean; +Cc: emacs-devel
> (let ((foo 'bar)) (setq-default foo 'baz))
> foo → Lisp error: (void-variable foo)
> Is that behavior correct?
Looks correct, yes, since `foo' is not made buffer-local, so
`setq-default' is just like `setq'.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-05 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 3:09 Is setq-default within a dynamic let-binding supposed to work? Kelly Dean
2015-02-05 4:10 ` Stefan Monnier
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).