From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Romanos Skiadas Newsgroups: gmane.emacs.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Thu, 2 Mar 2023 21:07:12 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000068fbb305f5ef8bf1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: philipk@posteo.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 02 20:23:10 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pXoWD-00085o-GJ for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Mar 2023 20:23:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXoVT-00088W-JE; Thu, 02 Mar 2023 14:22:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXoHR-0007Ap-4Q for emacs-devel@gnu.org; Thu, 02 Mar 2023 14:07:53 -0500 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXoHO-00046U-Lc for emacs-devel@gnu.org; Thu, 02 Mar 2023 14:07:52 -0500 Original-Received: by mail-ed1-x52d.google.com with SMTP id g3so1235997eda.1 for ; Thu, 02 Mar 2023 11:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=q1SISYHUlK+L9W2ayUDtAewVruLJT54sFwcJR73xRfc=; b=K3Yzxm/0KrrXwVxHdgRm6UWJZs4UfhI6Tg/ZQpMWKe40v7HlUX5bVQcOSfcDoR9x/m kdbdzf1cr71anwdL5n6BIPKEBbospmZDr00SLkQ1aiQY2QHn9ROX022xRb1SKnhXsrLM oVbUkd9tvaY7m7L9rAO9hZSsNQ+Pk72D9Uj5rjEyu9OXaZeUZnRbXdJLURUDhsaxUyzl 6eWyIc3CIhy94gHU+q7VbfVZPTT6uxNswDoWCPy/rCqMLQbf6az7ZVLUPthXqFqxR7Nk PoAusSbmwYJCxlA+SIADr7f7wQ0RbTnH0gJmrAc12KRn9QJOrrv+EVqLqRYvT3uED+67 KuzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q1SISYHUlK+L9W2ayUDtAewVruLJT54sFwcJR73xRfc=; b=mX+3JDu8IkwE6qRtDnm1nTrXeDzaHfs7tTwmMVxnjtmoWvfyYg0LBSV61jVHe1OUWY AOyCVMAsXDzHqoJ+lYW0mi8h83Plr3zGp2MGCxFxbWlUFXyv1UgilW/eoMUOmq5zWGI5 jwd5MF1PgLF8HfCLjjXa4ThPefB+nt9xc+Quu8XFSbDSoUVNW0KCa8VaINgF+uyIQjc7 xJti8H4iH3asuupqRfZol/UxheMGl/P2JJbn5inadHcFveGn9fCVJXCvt2pM5QdS8mDT oM7Af+zFxkJwLUzre9JEFWv2ijQQgkrAQS8k2ZbQNiimui3QTwE4QMUEZ1uDXojpgQsR bHQg== X-Gm-Message-State: AO0yUKVbdQ3bAX1pKxy7Iu7klO+afc3sPeMgm1Oe69rhWf0LlP1HNRSf L/YHAko2iAnrEkkD7EZubhtwHcJtejPj/dvU2kU= X-Google-Smtp-Source: AK7set9O8+8Ysm77Wq30yyOMSIpT11Bq+G4mDEe3cLSqHSy488wcEEi+mdZXdm06YXsFo7CbreEbhAP2iJe9/GTqDfs= X-Received: by 2002:a17:906:f6c8:b0:888:6294:a1fd with SMTP id jo8-20020a170906f6c800b008886294a1fdmr5452469ejb.2.1677784068454; Thu, 02 Mar 2023 11:07:48 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=rom.skiad@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 02 Mar 2023 14:22:21 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303900 Archived-At: --00000000000068fbb305f5ef8bf1 Content-Type: text/plain; charset="UTF-8" > > 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 --00000000000068fbb305f5ef8bf1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Der=
iving 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 commo=
n.  E.g. I
have this in my init.el:
I think this is kind of wha= t 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 pro= g mode just makes it nicer in practice.
=C2=A0
I haven&= #39;t seen anyone argue that YAML is a programming language per se, and I d= on't believe that either. However, to me there is a prevalent feeling t= hat it would be nice and consistent with the other elpa shipped modes of si= milar languages inherit from prog mod.

As to me ca= lling yaml-mode inheriting from text-mode arbitrary; I mean that in the sen= se 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 pac= kage.

Best,
Romanos
--00000000000068fbb305f5ef8bf1--