GNU bug report logs -
#76778
edebug chokes on cl-macrolet in macro expansions
Previous Next
To reply to this bug, email your comments to 76778 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76778
; Package
emacs
.
(Thu, 06 Mar 2025 09:07:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daniel Colascione <dancol <at> dancol.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 06 Mar 2025 09:07:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In the snippet below, edebug-instrumenting my-fn breaks, but
instrumenting the morally equivalent my-fn2 works.
;; -*- lexical-binding: t -*-
(cl-defmacro my-wrapper (&rest body)
(declare (debug (body)))
`(cl-macrolet ((my-local-macro (x)
(declare (debug (sexp)))
(cl-check-type x symbol)
nil))
,@body))
;; edebug instrument this fails the check-type above my-local-macro
;; gets (edebug-after 0 2 thing) instead of thing.
(defun my-fn () (my-wrapper (my-local-macro thing)))
;; edebug instrument works fine
(defun my-fn2 ()
(cl-macrolet ((my-local-macro (x)
(declare (debug (sexp)))
(cl-check-type x symbol)
nil))
(my-local-macro thing)))
This bug report was last modified 37 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.