From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: How to debug indentation
Date: Fri, 25 May 2018 01:24:01 -0400 [thread overview]
Message-ID: <jwv4liw9umw.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 87y3g88mqw.fsf@gmail.com
> I am trying to debug nXML mode indentation. As a way of seeing what
> functions like `nxml-indent-line' and `nxml-compute-indent' do, I am
> inserting `message' forms at various places in these functions, and
> looking at the *Messages* buffer to see what has happened. However, I
> am finding this method cumbersome.
If the indentation code is spread over several functions,
`trace-function` can be useful as well (along with insertion of
`trace-values` calls).
> Is there a more systematic way of doing this? Is it possible to use
> Edebug to debug indentation?
Yes, I often use Edebug to debug indentation problems.
Stefan
next prev parent reply other threads:[~2018-05-25 5:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 2:58 How to debug indentation N. Raghavendra
2018-05-25 3:45 ` N. Raghavendra
2018-05-25 5:24 ` Stefan Monnier [this message]
2018-05-25 17:47 ` N. Raghavendra
2018-05-26 1:41 ` Michael Heerdegen
2018-05-26 2:26 ` N. Raghavendra
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=jwv4liw9umw.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--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.