* 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 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.