[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A debugging puzzle with XML
From: |
Nicolas Richard |
Subject: |
Re: A debugging puzzle with XML |
Date: |
Thu, 29 Jan 2015 11:46:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> (require 'xmlgen)
> (with-temp-file "foo.xml"
> (insert (xmlgen '(hello (world (of (xml) "!")))))
> (sgml-pretty-print (point-min) (point-max)))
>
> and answer this question: where have all the indents go?
Ok let's play the game (i.e. I didn't try) : My guess is that since
`with-temp-file' doesn't set the major mode (i.e. it will be
fundamental-mode), there are local variables which are not set as
sgml-pretty-print would expect.
--
Nicolas Richard