help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: nXML mode indentation


From: Yuri Khan
Subject: Re: nXML mode indentation
Date: Tue, 08 May 2018 08:19:45 +0000

On Tue, May 8, 2018 at 3:09 PM N. Raghavendra <nyraghu27132@gmail.com>
wrote:

> I have made some progress, with this function.  I tried changing the
> definition of `nxml-compute-indent-from-previous-line' as follows:

> This almost gives me the indentation that I want, as in,

> ----------
>      <para>Let us suppose that the noumena have nothing to do with
>        necessity, since knowledge of the Categories is a posteriori.
>        Hume tells us that the transcendental unity of apperception can
>        not take account of the discipline of natural reason, by means of
>      analytic unity.</para>
> ----------

> The only thing is that the last line in the para, the one starting with
> "analytic", is not indented as I want it.  It should be indented to the
> same column as the previous line, the one starting with "not".

> I have put

> (message "bc=%s ac=%s" before-context after-context)

> to give me some idea of what is happening.  However, it does not produce
> any message when I go to the troublesome last line of the para, and
> press tab.

That probably means the indentation for that line is computed in
‘nxml-compute-indent-from-matching-start-tag’.



reply via email to

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