GNU bug report logs - #75498
31.0.50; cl-block is not lexically scoped

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Sat, 11 Jan 2025 16:09:01 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 75498 <at> debbugs.gnu.org
Cc: eliz <at> gnu.org, yantar92 <at> posteo.net, monnier <at> iro.umontreal.ca
Subject: bug#75498: 31.0.50; cl-block is not lexically scoped
Date: Wed, 15 Jan 2025 14:34:04 +0100
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Not sure what I was thinking when I wrote that code.
> IIRC someone else reported basically this bug already some years ago,
> and I lost track of it somehow.
> I think the patch below might do the trick.

Hmm - but there is something wrong, I get

Debugger entered--Lisp error: (void-variable --cl-block-x--)
  (throw --cl-block-x-- 'dynamic)
  (return-from-x)
  (catch --cl-block-x-- (return-from-x) (throw --cl-block-x-- 'lexical))
  (let ((--cl-block-x-- (cons '--cl-block-x-- nil))) (catch --cl-block-x-- (return-from-x) (throw --cl-block-x-- 'lexical)))
  (x-block)

for the originally posted example.


Michael.




This bug report was last modified 129 days ago.

Previous Next


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