From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Basil Contovounesios Newsgroups: gmane.emacs.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Tue, 28 Feb 2023 15:52:26 +0000 Message-ID: <87r0u9wzwl.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25889"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Randy Taylor , emacs-devel@gnu.org To: Romanos Skiadas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 28 16:53:34 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 1pX2IH-0006Sp-U6 for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Feb 2023 16:53:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX2HL-0002dJ-JV; Tue, 28 Feb 2023 10:52:35 -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 1pX2HJ-0002d7-NV for emacs-devel@gnu.org; Tue, 28 Feb 2023 10:52:33 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX2HG-0005jx-5U for emacs-devel@gnu.org; Tue, 28 Feb 2023 10:52:33 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id k37so6786258wms.0 for ; Tue, 28 Feb 2023 07:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=PHkuepnSFiflJ7bk2gl1nq75zl4JDAjrKWYAnJLUpjU=; b=CYAvC5qajPTnU3X5Yn+vs94PNtnuf6it4gchaiZw4qSGaQRVKWS8MGNuSRN5MYEuGD RoWcIkHuwaxC8JMcWiXhf4HG4BoFceD2b57CZ6EVgGNIv5jHXGQJXlL+Oq4e+eNf2w71 Kzw0MrxJKfCs6ttzq8dIaivSJhN2guCU5TDxcK8w00Dd8nIAYdM8Po/k51aoqgJ1czUr pTe2daXq22Ozh8X0VRcl/faZCyWoyvLXu3aQfleSk2sExcC7hL7Kr+rOnFmgUTCwe/oZ sxjsKKup0w+laUoYFMP2iJvcFUtAQjUXUC522ioslQoaXnYagFKH05UjTW9puwSeENGC cegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PHkuepnSFiflJ7bk2gl1nq75zl4JDAjrKWYAnJLUpjU=; b=yWc+CcqsdKkT+j/eW/aUtQlE/PSI+rt03P9rwv764Hsb4B/Q4sOjwi8GSkYMv99pjj 8x0lBe4uQO33KNylHlFfU4eBraM2eiXryv7JAEVF6msh+qZRXUeHLA2/fyqE0fv3BuPU VtF6JwPljt2O0MBBF9MykKM2JcLQ1Z4TE3PqyjC/1khnIbYuydtt3q0iq7JmZ3piMa7L 8/hywHoWKoMNlrVb5iPvJln+kqKvYN6SfGZ2OvFRr4b8kuxPhM+4wQKBztkUs4J7cdML KxQE7UAOm62FbHBIRqVFycQhUJ4Ilwu8xV5fxlUDyjcak1boXLpXk+SRWbIWsGVx50Wy rGOw== X-Gm-Message-State: AO0yUKWbF2pFJ/j4DAhIMAMhxSKS0aVoFa8+ludtq+6sJGEW74/Y2Gkr p8Tv88bGwoAc1mAEiAFsf/p3ig== X-Google-Smtp-Source: AK7set/SkicIzXuZaqyEltZtdHOgHdXelYgAv4St3+zXyIeRyVu7P0L7ECIVewixlFSoZ8fg3WnIhA== X-Received: by 2002:a05:600c:c88:b0:3eb:3974:aad7 with SMTP id fj8-20020a05600c0c8800b003eb3974aad7mr2490378wmb.24.1677599547687; Tue, 28 Feb 2023 07:52:27 -0800 (PST) Original-Received: from localhost ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id u5-20020a5d6ac5000000b002c5a1bd5280sm9986537wrw.95.2023.02.28.07.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 07:52:27 -0800 (PST) In-Reply-To: (Romanos Skiadas's message of "Tue, 28 Feb 2023 14:24:55 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=contovob@tcd.ie; helo=mail-wm1-x331.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, 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:303858 Archived-At: Romanos Skiadas [2023-02-28 14:24 +0200] wrote: > 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? [ Copying in Randy, yaml-ts-mode's author/maintainer. ] FWIW, my vote is for treating YAML and JSON consistently: if all three JSON modes in Emacs and GNU ELPA are prog-modes, then so should yaml-ts-mode; or if yaml-ts-mode is a text-mode, then so should all three JSON modes. I suspect most of that ship if not the entire thing has already sailed, especially in the case of the more established json-mode, but there's always hope ;). Thanks, -- Basil