GNU bug report logs - #66940
Dynamic scoping is all weird now?

Previous Next

Package: emacs;

Reported by: Dave Goel <deego3 <at> gmail.com>

Date: Sun, 5 Nov 2023 04:08:02 UTC

Severity: normal

Tags: notabug

Done: Michael Heerdegen <michael_heerdegen <at> web.de>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 66940 <at> debbugs.gnu.org (full text, mbox):

From: Dave Goel <deego3 <at> gmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>, 
 Dave Goel <deego3 <at> gmail.com>
Cc: 66940 <at> debbugs.gnu.org
Subject: Re: bug#66940: Dynamic scoping is all weird now?
Date: Sun, 5 Nov 2023 01:58:44 -0500
[Message part 1 (text/plain, inline)]
got you.
My macro should have been


(defmacro mac()
  `(progn
     (message "%S" ,ii)
     (sit-for 0.1)))

So, the original macro had a brain-fart basically amounted to returning nil
unconditionally.
In that case, why were we getting that strange error?



On Sun, Nov 5, 2023 at 1:04 AM Gerd Möllmann <gerd.moellmann <at> gmail.com>
wrote:

> Dave Goel <deego3 <at> gmail.com> writes:
>
> > On Sun, Nov 5, 2023 at 12:06 AM Dave Goel <deego3 <at> gmail.com> wrote:
> >
> >> (progn
> >>   (setq lexical-binding nil)
> >>
> >>   (dotimes (ii 10)
> >>     (defmacro mac ()
> >>       `(message "%S" ,ii)
> >>       (sit-for 0.1))
>
> The macro expansion of mac is what it returns, which is what sit-for
> returns...
>
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.