[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.
Yes.
- Re: nxml-mode: Derive from prog-mode instead of text-mode, (continued)
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Stefan Monnier, 2017/05/10
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Eli Zaretskii, 2017/05/10
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Jostein Kjønigsen, 2017/05/10
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Eli Zaretskii, 2017/05/10
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Eli Zaretskii, 2017/05/10
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Jostein Kjønigsen, 2017/05/11
- Re: nxml-mode: Derive from prog-mode instead of text-mode, raman, 2017/05/11
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Eli Zaretskii, 2017/05/11
- Re: nxml-mode: Derive from prog-mode instead of text-mode,
Eli Zaretskii <=
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Philipp Stephani, 2017/05/14
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Dmitry Gutov, 2017/05/14
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Tom Tromey, 2017/05/14
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Jostein Kjønigsen, 2017/05/16
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Yuri Khan, 2017/05/16
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Stefan Monnier, 2017/05/16
- RE: nxml-mode: Derive from prog-mode instead of text-mode, Drew Adams, 2017/05/16
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Stefan Monnier, 2017/05/16
- Re: nxml-mode: Derive from prog-mode instead of text-mode, Eric Abrahamsen, 2017/05/16
- RE: nxml-mode: Derive from prog-mode instead of text-mode, Drew Adams, 2017/05/16