From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to debug indentation Date: Fri, 25 May 2018 01:24:01 -0400 Message-ID: References: <87y3g88mqw.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527225761 23917 195.159.176.226 (25 May 2018 05:22:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 May 2018 05:22:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 25 07:22:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM5BU-00067O-Mk for ged-emacs-devel@m.gmane.org; Fri, 25 May 2018 07:22:36 +0200 Original-Received: from localhost ([::1]:41896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM5Db-0005GC-GH for ged-emacs-devel@m.gmane.org; Fri, 25 May 2018 01:24:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM5D2-0005Fq-AC for emacs-devel@gnu.org; Fri, 25 May 2018 01:24:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM5Cz-0003RM-6W for emacs-devel@gnu.org; Fri, 25 May 2018 01:24:12 -0400 Original-Received: from [195.159.176.226] (port=36717 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM5Cy-0003Qg-VT for emacs-devel@gnu.org; Fri, 25 May 2018 01:24:09 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fM5Ap-0005PN-Ji for emacs-devel@gnu.org; Fri, 25 May 2018 07:21:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:R63X0S/e2tjPlCW76ZOWH7SpZtA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225696 Archived-At: > 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