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: Should yaml-ts-mode inherit from prog-mode? Date: Tue, 28 Feb 2023 14:24:55 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000c93c505f5c1b144" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31740"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 28 15:15:02 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 1pX0kv-00083g-P0 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Feb 2023 15:15:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX0kZ-0005H5-F5; Tue, 28 Feb 2023 09:14:39 -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 1pWz31-00070p-SN for emacs-devel@gnu.org; Tue, 28 Feb 2023 07:25:35 -0500 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWz2z-0000lO-TK for emacs-devel@gnu.org; Tue, 28 Feb 2023 07:25:35 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id i34so39097816eda.7 for ; Tue, 28 Feb 2023 04:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4iNwfmSpR3pzVJfhJNhgmUJPPPHQW3syUL5F8epcnZ0=; b=G0eUoeRrYWsC6FEJDTZL3c+COu+o3pSdiXhmcTXMema/J0R2ipfrfDaqSC3m9Gi4w8 S0K5XB0WYdS9PrDywRjvkf4ckI854NGSD1Ye06wbpQW4rYBxE3+lizraz2EnuqltuJNT RKzE6IMXy0Q94KaJz4JRXleiakkGb1bLfX6QX/H5THJM1uQKXJt9Ql5vOQITUz75kiIO IqXcKhpKtrfgl7V3Hu0Ik2N9CXuq2E7zSW3TSwqo3TmWpHcC5rD0DkyZR6P7oG5aBdO5 FgmiVOBa5oBlvmlmVD4o9jh9ZkXI5LiXqyqYTsPYiSGDPxZMSIq0pE7e0W3AsPtX7qz5 /Rbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4iNwfmSpR3pzVJfhJNhgmUJPPPHQW3syUL5F8epcnZ0=; b=AsLetz68JEjFzruuv9EYn6regDcHrsuX95tgwKBEwBxFU1saqpeen6JArx19VxKhQq 5wVROCEg7i5/PA1TDQXWM35wDbGfyjhjTs46qOt1VMXU38ZeKq6nRgfoRgBAr42CieRo ia2nniedivFIgE/bK18qmVAfCYvRESvBVk/qCE86t1Gvet9+hNVNzDhif9KD+wma0F7G shKZRKCYoFBsvaGSBQcCmhSXD8Uktuf9PzsQRsPfw9h7ogEj/Z+xopw3EXPvSl3vMwyE kGLAxg41NAOwPJipTjv++hNSWiLQBrWePCr4cnPYyYPi4TLisp9fpjDesB2GwGJNd0C2 YjQg== X-Gm-Message-State: AO0yUKXbu2mnDMkoh/H5CPOxTHZdlteCkcpU/3lMb1ojV+oNZ7AHWHQL eu9gRFP9eWWsvD0vZW/aZtLB4nls1RHIFxobl+RTo2byvXg= X-Google-Smtp-Source: AK7set8PTHWZKtVOlc4ZlOdGANqc8tAi+BOH0wyrpi18DnHPr3OtcVkqPegKoZbwiklRTWyTjqnfLBdiV5GIHSKKO68= X-Received: by 2002:a50:d547:0:b0:4ad:6fc8:69be with SMTP id f7-20020a50d547000000b004ad6fc869bemr1719415edj.4.1677587131436; Tue, 28 Feb 2023 04:25:31 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=rom.skiad@gmail.com; helo=mail-ed1-x52a.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: Tue, 28 Feb 2023 09:14:38 -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:303855 Archived-At: --0000000000000c93c505f5c1b144 Content-Type: text/plain; charset="UTF-8" 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 --0000000000000c93c505f5c1b144 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I was using yaml-ts-m= ode 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 existi= ng rather widely used mode uses text-mode, although that seems like an arbi= trary decision by a single maintainer:
(I'm not sure Emacs maintainers are beholden to a decis= ion made some jumps away and whether this is a strong enough argument to ke= ep 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. Personal= ly, I feel that YAML is more of a prog language than JSON (whatever that me= ans), 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


--0000000000000c93c505f5c1b144--