all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Debugging functions with lexical-binding
Date: Mon, 30 May 2011 01:13:24 -0300	[thread overview]
Message-ID: <jwv62os4yor.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2mxi77x3q.fsf@gmail.com> (Helmut Eller's message of "Sat, 28 May 2011 15:50:33 +0200")

> What are the commands to inspect local variables of lexical functions?

M-x esp RET

> So what is the replacement?

Currently the only replacement is in cconv.el near the beginning of the file:

;; TODO: (not just for cconv but also for the lexbind changes in general)
;; - let (e)debug find the value of lexical variables from the stack.

> [BTW, the debugger now enters recursively if an error occurs during
> debugger-eval-expression.

AFAIK there's been no change in this area for as far back as I remember.

> That's almost certainly undesirable, especially as there is no easy
> way to jump out of the recursive evaluation.

There was no such way, indeed, but as you note below there now is.

> Pressing C-M-c reduces one level of recursive edit but puts the
> *Backtrace* buffer in fundamental-mode which is IMO also wrong.]

Yup, the *Backtrace* buffer's content and major-mode are not properly
saved&restored upon entry to and exit from the debugger.  Patch welcome,


        Stefan



  reply	other threads:[~2011-05-30  4:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-28 13:50 Debugging functions with lexical-binding Helmut Eller
2011-05-30  4:13 ` Stefan Monnier [this message]
2011-05-31  7:11   ` Helmut Eller
2011-05-31 15:25     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv62os4yor.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eller.helmut@gmail.com \
    --cc=emacs-devel@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.