From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Thu, 2 Mar 2023 07:55:48 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c2908a05f5ea59db" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23720"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Randy Taylor , emacs-devel To: Vasilij Schneidermann Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 02 13:57:52 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 1pXiVM-0005wD-DV for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Mar 2023 13:57:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXiTm-0004A9-Da; Thu, 02 Mar 2023 07:56:15 -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 1pXiTc-0003rs-4Y for emacs-devel@gnu.org; Thu, 02 Mar 2023 07:56:04 -0500 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXiTa-0005Gb-2Y for emacs-devel@gnu.org; Thu, 02 Mar 2023 07:56:03 -0500 Original-Received: by mail-pf1-x432.google.com with SMTP id y10so10005660pfi.8 for ; Thu, 02 Mar 2023 04:56:01 -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:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7WCpIuAu0qqXXT889Z0jmcS2f2U2wGvqfGtLgZOmqTA=; b=DoA/BeH+sVpJnpQ2XXzo2VyZP23+UXXFHosNQ7N08FJUViTdFYI59SMPb+t8G3+DUU He+JaZUkJXwVhsvPnZJJBsGAXCjSx8NUDJaXRDRsyDrTIKPDfFwfjIMQXCA9ip/5wDgO Q0ErQDIuY+3X0UZwh1hHekQ8Ns+/LyuaIOOG10mWXZR2S2yzYAlh6oJQvqHhPtyF0dTN 1U37zGIv1LqAtdMDxWRoyD3tc53zjNkZOQJ9y94Nhg1LTLQmbJjkKAj3Ai80VM5ca7X7 RK6SdqgUZ1ktSGj5n4Q3uR8/jOAk5cEEKAHWoXtDlE4aUZpJahDk6t7L+LKCJ+foIg4W KoOw== 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:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7WCpIuAu0qqXXT889Z0jmcS2f2U2wGvqfGtLgZOmqTA=; b=cWBk/8X4goq+25cN6SDkOOpr95ZEBMLEWCvIk3Di4BrqdCZjosVVo9HxOskz0NL17i /AGBVqvxpXhztITK0xaIeYqnZ9r1j4f+Pa98OTll84qC5idoJbq8GfTL4krgIHrRwdCk UwruR5OjxGCJy6eAM0UqVt+KZsZrg9pyDiZyNuMl/fjYM5jAwO1lYsOC+OeT2EpPzQc1 3SvkBlKZeeE6KjhU5qq8bSQjkssqosKTp7O7rvv4mqH44WaRC7f5OmJL1FZzx9PATDe/ cWf7R8OeEwdqkEOkf5LyCL6RchfznwBvvOWOsjAIs4+J7S/RPnikJdS8+TGojXnZGDXv YcYQ== X-Gm-Message-State: AO0yUKUu/pTbkdXxLR3SBRiOMJUe30xIc1xiYEZo3Kg2QTwvbDCj0c4X 29SCWX5anvCZEAYR2PuVje5DrxoBfZX3itfS946xvn4X X-Google-Smtp-Source: AK7set9BaxTheuWA62h/nGHaKUCB5/2N1stzkhfNObBVuGTKzwBIDzYEV7kg5vS4e1HnIdxwFnnpDpgV5835BEOZWJo= X-Received: by 2002:a05:6a00:1713:b0:5d9:27a5:619e with SMTP id h19-20020a056a00171300b005d927a5619emr3701940pfc.4.1677761760625; Thu, 02 Mar 2023 04:56:00 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=owinebar@gmail.com; helo=mail-pf1-x432.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-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:303894 Archived-At: --000000000000c2908a05f5ea59db Content-Type: text/plain; charset="UTF-8" On Wed, Mar 1, 2023, 11:36 AM Vasilij Schneidermann wrote: > > > Deriving from prog-mode feels weird since YAML is not a programming > > language. > > Yes, that was pretty much my reasoning. To quote the `prog-mode` > docstring: "Major mode for editing programming language source code." > > Unless there's some XSLT equivalent for YAML, I do not see it being > programming language source code at all. > Perhaps "programming language" is intended to mean that a given file is "legal" is decidable (which lets TeX off the hook). YAML has been argued to be several things (configuration, > serialization, text) and having to choose one in particular cannot work > out in a satisfying way unless it's about a very basic property not > based on opinion > The YAML spec is insistent that it is a data serialization format. Lynn --000000000000c2908a05f5ea59db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Mar 1, 2023, 11:36 AM Vasilij Schneidermann <mail@vasilij.de> wrote:

> Deriving from prog-mode feels weird since YAML is not a programming > language.

Yes, that was pretty much my reasoning. To quote the `prog-mode`
docstring: "Major mode for editing programming language source code.&q= uot;

Unless there's some XSLT equivalent for YAML, I do not see it being
programming language source code at all.

Perhaps "programming language&= quot; is intended to mean that a given file is "legal" is decidab= le (which lets TeX off the hook).

YAML ha= s been argued to be several things (configuration,
serialization, text) and having to choose one in particular cannot work
out in a satisfying way unless it's about a very basic property not
based on opinion=C2=A0

The YAML spec is insistent that it is a data serializ= ation format.

Lynn
=

--000000000000c2908a05f5ea59db--