From: Kan-Ru Chen <kanru@kanru.info>
To: 9120@debbugs.gnu.org
Subject: bug#9120: 24.0.50; Cannot debug lexical-binded function (closure)
Date: Tue, 19 Jul 2011 10:32:22 +0800 [thread overview]
Message-ID: <87oc0r3sqx.fsf@isil.kanru.info> (raw)
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''
next reply other threads:[~2011-07-19 2:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 2:32 Kan-Ru Chen [this message]
2011-08-22 21:17 ` bug#9120: 24.0.50; Cannot debug lexical-binded function (closure) Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oc0r3sqx.fsf@isil.kanru.info \
--to=kanru@kanru.info \
--cc=9120@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).