[Top][All Lists]

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

Re: Should yaml-ts-mode inherit from prog-mode?

From: Lynn Winebarger
Subject: Re: Should yaml-ts-mode inherit from prog-mode?
Date: Wed, 1 Mar 2023 09:28:19 -0500

On Wed, Mar 1, 2023, 9:10 AM Randy Taylor <dev@rjt.dev> wrote:

I think the JSON modes are prog-modes just because they are attached to the _javascript_ modes in some way (usually derived from it). I'm not sure how much weight we can assign to certain modes deriving from other modes and saying we should do the same (especially in the case of ELPA/MELPA modes); instead we should ask which mode makes the most sense to derive from. Although there is the argument for consistency that you mentioned...

Perhaps since data serialization formats can be used to store data structures in source files in a portable way, it makes sense to write generic modes for them that can be adapted to specific PL modes?
I'm sure JSON developed in the opposite direction, but would it have been better to start with JSON mode then embed it in _javascript_/Python/etc modes from the start?

reply via email to

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