emacs-devel
[Top][All Lists]
Advanced

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

Re: nxml-mode: Derive from prog-mode instead of text-mode


From: Stefan Monnier
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Tue, 16 May 2017 17:50:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Beware: you are shifting the focus of this discussion from nxml-mode
> and its ilk, which was the original issue, to an almost completely
> unrelated one.  There be a lot of unrelated bikeshedding (which
> actually already began).

I think the best option is to create a new structured-text-mode which
inherits from both text-mode and prog-mode (and then have nxml-mode
inherit from that mode).

Those users who want to enable some functionality in text-mode but not
in structured-text-mode can always use (derived-mode-p
'structured-text-mode) in the hook function.


        Stefan




reply via email to

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