emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#10991: closed (syntax-local-binding does not play


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#10991: closed (syntax-local-binding does not play well with fluid-let-syntax)
Date: Wed, 13 Mar 2013 10:46:02 +0000

Your message dated Wed, 13 Mar 2013 11:44:36 +0100
with message-id <address@hidden>
and subject line Re: bug#10991: syntax-local-binding does not play well with 
fluid-let-syntax
has caused the debbugs.gnu.org bug report #10991,
regarding syntax-local-binding does not play well with fluid-let-syntax
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
10991: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10991
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: syntax-local-binding does not play well with fluid-let-syntax Date: Sun, 11 Mar 2012 12:47:22 +0100 loading local-stx shows that setting a macro via fluid-let-syntax does not
play well with syntax-local-binding who just sees the outside main
definition and not the newly introduced binding!
 -------------------

(use-modules (system syntax))
(use-modules (srfi srfi-11))

(eval-when (compile load eval)
  (define (%f x) (error "this macro should never be called")))

(define-syntax f %f)

(define-syntax info
  (lambda (x)
    (syntax-case x ()
      ((_ f)
       (let-values (((key ret) (syntax-local-binding #'f)))
         (pk key)
         ret)))))
             
;;This shows that f rebounds to yield #t but the info returns %f
(eq?
 (fluid-let-syntax ((f (lambda x #'#t)))
   (pk (f 1))
   (info f))
 %f)

Attachment: local-stx.scm
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#10991: syntax-local-binding does not play well with fluid-let-syntax Date: Wed, 13 Mar 2013 11:44:36 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
On Sun 23 Sep 2012 12:22, Stefan Israelsson Tampe <address@hidden> writes:

> What's perhaps is missing is a simple change to local-syntax-value to
> add a keyword so that one can decide if one wants the definition value
> of the syntax parameter.

I have added this in master (to syntax-local-binding) and documented
it.  Closing this bug.

Andy
-- 
http://wingolog.org/


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]