GNU bug report logs -
#9120
24.0.50; Cannot debug lexical-binded function (closure)
Previous Next
Reported by: Kan-Ru Chen <kanru <at> kanru.info>
Date: Tue, 19 Jul 2011 02:34:02 UTC
Severity: normal
Merged with 8458
Found in version 24.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
The lisp debugger doesn't know the closure form:
(setq lexical-binding t)
(defun my-test nil)
(debug-on-entry 'my-test)
=> (error "my-test is not a user-defined Lisp function")
And if the file was byte-compiled, for example:
(debug-on-entry 'shell)
(shell)
=> call-interactively: Invalid function: (lambda 256 "Run an inferior
shell, with I/O through BUFFER (which defaults to `*shell*'). [rest of
the doc string]
Thus one cannot debug most byte-compiled lisp functions (46 files
under lisp/ have declared lexical-binding).
--
Kanru
In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.5)
of 2011-07-19 on isil
configured using `configure '--with-xpm=no' '--with-gif=no' '--with-tiff=no''
This bug report was last modified 13 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.