From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Cully via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Mon, 20 Mar 2023 12:20:18 -0400 Message-ID: <874jqfjsom.fsf@psyduck.jhoto.kublai.com> References: <83mt478w48.fsf@gnu.org> Reply-To: Brian Cully Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5173"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 28.2 Cc: emacs-devel@gnu.org To: Rudolf Schlatte Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 20 17:27: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 1peIMR-00018T-Nk for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Mar 2023 17:27:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peILY-00057L-HH; Mon, 20 Mar 2023 12:26:56 -0400 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 1peILX-000572-6y for emacs-devel@gnu.org; Mon, 20 Mar 2023 12:26:55 -0400 Original-Received: from coleridge.kublai.com ([166.84.7.167] helo=mail.spork.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peILV-00084K-Br for emacs-devel@gnu.org; Mon, 20 Mar 2023 12:26:54 -0400 Original-Received: from psyduck (ool-18b8e9e7.dyn.optonline.net [24.184.233.231]) by mail.spork.org (Postfix) with ESMTPSA id 4866C9458; Mon, 20 Mar 2023 12:25:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spork.org; s=dkim; t=1679329568; bh=9cyYQtltf3vCyvS+ImnliqwX343d0mBLWpw68mnch3s=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=H2efoeRZadlm2GTqhQ2dN6FRLNbVh1IWTzKz3fbm0qVLWIXPiQWy4OPspjCURoxUP IjsqI7btxz00K0AudIYkc55wz2nXo0kCPxy81QP07mt5jpQ+vuRFHh4tGKyQpiRhS4 WQdZb4r/FMpN0SSTxfbbKh3OmjMdQwwKhRRT3C/I= In-reply-to: Received-SPF: pass client-ip=166.84.7.167; envelope-from=bjc@spork.org; helo=mail.spork.org 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, 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:304608 Archived-At: Rudolf Schlatte writes: > Most yaml files "in the wild" are configuration files (for=20 > Kubernetes, > ansible, and other "modern" tools), so in practice yaml-mode is=20 > much > closer to json-mode and lisp-data-mode, both of which derive=20 > from > prog-mode. The distinction, for me, is that YAML is highly structured text,=20 which will fail to parse intelligibly for everything that tries to=20 use it if that structure is ignored or malformed. It is intended=20 primarily for machine interpretation, not human. Contrast that to=20 Org, which is obviously intended primarily for humans, with=20 structural elements specifically chosen so that it is intelligible=20 by humans in the absence of org-mode entirely, and is still quite=20 usable even with malfored structure. Org is, primarily, for=20 prose. YAML is for instructing a machine. If your job is telling a=20 machine what to do, you're a prog-mode, in my book. And count me in as someone who has to jump through a bunch of=20 hoops to get yaml-mode working =E2=80=9Ccorrectly=E2=80=9D due to it being = based=20 on text mode. -bjc