emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug indentation


From: Stefan Monnier
Subject: Re: How to debug indentation
Date: Fri, 25 May 2018 01:24:01 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]