unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Should yaml-ts-mode inherit from prog-mode?
@ 2023-03-02 19:07 Romanos Skiadas
  2023-03-03  4:23 ` Richard Stallman
  0 siblings, 1 reply; 39+ messages in thread
From: Romanos Skiadas @ 2023-03-02 19:07 UTC (permalink / raw)
  To: philipk; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]

>
> Deriving from prog-mode or from text-mode doesn't mean much in practice.
> I see it as less of a formal taxonomy of programming languages, and more
> of a convenience measure to make changes that (vaguely speaking) "all
> programming modes" or "all text-related modes" have in common.  E.g. I
> have this in my init.el:
>
> I think this is kind of what it boils down to. There's one discussion to
be had about whether YAML is a programming language and one whether
yaml-ts-mode inheriting from prog mode just makes it nicer in practice.

I haven't seen anyone argue that YAML is a programming language per se, and
I don't believe that either. However, to me there is a prevalent feeling
that it would be nice and consistent with the other elpa shipped modes of
similar languages inherit from prog mod.

As to me calling yaml-mode inheriting from text-mode arbitrary; I mean that
in the sense that it was not discussed. It was done with a reason and as a
conscious choice, but it was a singular maintainer's choice in a non-GNU
elpa package.

Best,
Romanos

[-- Attachment #2: Type: text/html, Size: 1349 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread
* Should yaml-ts-mode inherit from prog-mode?
@ 2023-02-28 12:24 Romanos Skiadas
  2023-02-28 15:52 ` Basil Contovounesios
                   ` (3 more replies)
  0 siblings, 4 replies; 39+ messages in thread
From: Romanos Skiadas @ 2023-02-28 12:24 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]

Hello,

I was using yaml-ts-mode in Emacs 30, and to my surprise I found it
inherits from text-mode.

Now, a case can be made for that for sure. The existing rather widely used
mode uses text-mode, although that seems like an arbitrary decision by a
single maintainer:
https://github.com/yoshiki/yaml-mode/issues/17
https://github.com/yoshiki/yaml-mode/issues/27
https://github.com/yoshiki/yaml-mode/issues/52
https://github.com/yoshiki/yaml-mode/pull/85

(I'm not sure Emacs maintainers are beholden to a decision made some jumps
away and whether this is a strong enough argument to keep yaml-ts-mode as
is.)

However, and here is where things kind of break down a bit: I would
personally argue that YAML has a code feel to it, what with all the bash
scripts that end up in it. Personally, I feel that YAML is more of a prog
language than JSON (whatever that means), and according to the spec it is a
superset of JSON. In fact, the JSON mode shipped with Emacs inherits from
prog-mode!

So, what do people think? Should yaml-ts-mode be changed?

Best,
rski

[-- Attachment #2: Type: text/html, Size: 1808 bytes --]

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2023-03-22  6:04 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-02 19:07 Should yaml-ts-mode inherit from prog-mode? Romanos Skiadas
2023-03-03  4:23 ` Richard Stallman
2023-03-04 18:24   ` Romanos Skiadas
2023-03-20  1:52     ` Randy Taylor
2023-03-20 12:07       ` Eli Zaretskii
2023-03-20 14:37         ` Rudolf Schlatte
2023-03-20 16:20           ` Brian Cully via Emacs development discussions.
2023-03-20 16:53           ` Eli Zaretskii
2023-03-21 11:19           ` Jostein Kjønigsen
2023-03-21 13:26             ` Eli Zaretskii
2023-03-21 13:54               ` Rudolf Schlatte
2023-03-21 14:43                 ` Yuri Khan
2023-03-21 15:03                   ` Rudolf Schlatte
2023-03-22  6:04                     ` Yuri Khan
2023-03-22  2:37           ` David Ongaro
2023-03-21  3:13         ` Randy Taylor
  -- strict thread matches above, loose matches on Subject: below --
2023-02-28 12:24 Romanos Skiadas
2023-02-28 15:52 ` Basil Contovounesios
2023-03-01 14:08   ` Randy Taylor
2023-03-01 14:28     ` Lynn Winebarger
2023-03-01 16:35     ` Vasilij Schneidermann
2023-03-02 12:55       ` Lynn Winebarger
2023-03-02 13:44       ` Philip Kaludercic
2023-03-03  9:00         ` Rudolf Schlatte
2023-03-03 21:58           ` Yuan Fu
2023-03-04 18:45             ` Juri Linkov
2023-02-28 17:50 ` Daniel Fleischer
2023-02-28 17:56 ` Daniel Fleischer
2023-02-28 18:33   ` Dmitry Gutov
2023-03-01 13:35     ` Basil Contovounesios
2023-03-12  2:14   ` Ongaro
2023-03-12  9:20     ` Daniel Fleischer
2023-03-12 12:31       ` Rudolf Schlatte
2023-03-13  8:44       ` Yuri Khan
2023-03-14  1:45       ` David Ongaro
2023-03-01  7:46 ` Matthias Meulien
2023-03-01 13:45   ` Basil Contovounesios
2023-03-07 11:27     ` Jostein Kjønigsen
2023-03-07 14:28       ` Matthias Meulien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).