[Top][All Lists]

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

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

From: Eli Zaretskii
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Thu, 11 May 2017 18:26:41 +0300

> From: Jostein Kjønigsen <address@hidden>
> Cc: address@hidden
> Date: Thu, 11 May 2017 09:29:59 +0200
> But prog-mode represents a API, a endpoint, for end-users and developers to 
> wire up anything and any
> customization they deem programming-related.
> With prog-mode API-wise being a "success", shouldn't Emacs core honour that 
> API by using it where
> appropriate? That would IMO be the consistent thing to do.
> That Emacs ships with only 3 such customizations out of the box seems to me 
> irellevant.

My point is, given how little prog-mode customizes, there's no
particular reason why your customizations should start from prog-mode.
They could start from any other major mode, since you need to invent
most of them from scratch anyway; prog-mode doesn't help you make
fewer customizations.

>  I could understand an argument that nowadays XML and even HTML deviate
>  a lot from text with markup, but I don't see how prog-mode would be
>  more appropriate. I tend to think that we should come up with a new
>  family of modes, which specifically caters to the likes of XML-based
>  coding.
> Something like structured-text-mode ? Which for instance nxml-mode, 
> json-mode, yaml-mode (etc etc) could
> derive from.


reply via email to

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