[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20639: 24.5; nesting cl-tagbody
From: |
Stefan Monnier |
Subject: |
bug#20639: 24.5; nesting cl-tagbody |
Date: |
Mon, 25 May 2015 09:39:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> (cl-tagbody :next
> (cl-tagbody :next
Yay! Someone's using cl-tagbody!?
I installed the patch below which should fix those problems,
Stefan
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 27d3da3..636c543 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -1786,7 +1786,8 @@ Labels have lexical scope and dynamic extent."
(unless (eq 'go (car-safe (car-safe block)))
(push `(go cl--exit) block))
(push (nreverse block) blocks))
- (let ((catch-tag (make-symbol "cl--tagbody-tag")))
+ (let ((catch-tag (make-symbol "cl--tagbody-tag"))
+ (cl--tagbody-alist cl--tagbody-alist))
(push (cons 'cl--exit catch-tag) cl--tagbody-alist)
(dolist (block blocks)
(push (cons (car block) catch-tag) cl--tagbody-alist))