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: Wed, 1 Mar 2023 09:28:19 -0500 Message-ID: References: <87r0u9wzwl.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b3443e05f5d7867f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Basil Contovounesios , Romanos Skiadas , emacs-devel To: Randy Taylor Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 01 15:29:37 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 1pXNSa-0002QF-Pj for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Mar 2023 15:29:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXNRt-0003Ge-LV; Wed, 01 Mar 2023 09:28:54 -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 1pXNRs-0003GO-J9 for emacs-devel@gnu.org; Wed, 01 Mar 2023 09:28:52 -0500 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXNRr-0002L0-0w for emacs-devel@gnu.org; Wed, 01 Mar 2023 09:28:52 -0500 Original-Received: by mail-pl1-x634.google.com with SMTP id i3so14158303plg.6 for ; Wed, 01 Mar 2023 06:28:31 -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=cdbXiAhldunSMFRNP2Jm32VnwCHjyRbYrNZrP3VniQ4=; b=pDht+mrtMh6jiolpNxciKySZB8II4lo2FAbwd0ym7yPPb8Q2pUmHnKzfT1GwW4ueHa DwsZ1a9p5Y0VJEifgb4/eF/6PEykrEmdXyAMy38GTS/hW93JcyXGNEOTNWYQ48tt0awl q2StE9vNVLIjT3om+ohMjgwel+KB8gLfdpHZw3yL70oA7J2pQRYoFUWoV5nWom5uERxw e9W9Ra5cxTFGu36WYH5l7O9m+IroaD2AJh202oRhvs7nXS571qRNeev+sc6dFUNKUvxm J9nWpggBQZRO94KG7013BIQY2JHJ0sN7HujyECR9LNdOXkOoMqoSwoKOI4KS2rhOfaNV uMag== 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=cdbXiAhldunSMFRNP2Jm32VnwCHjyRbYrNZrP3VniQ4=; b=dk51IG65gTSBx+/m8JxRhHABDREwLrp6/bDWLBrc5WwxmVPIBZVkZq7Y13wgr5v8C9 FZol/X0TYEBOe/SceUwT/2dHhJMJA9actc2gpuvbCtzGLQwhNiL9mHpxDx6YxNvo5Eaa tYdfDRXTZXM6fWIMopJhigEtvtJY4z3GaEsn4riUe943XDQ64iG8y9X5yE5jmnMuy/5Z Nn4hmWorKQ8nqoE7Gjp06O++LDA3cM+iOT2IwW2o0NVbui/X7p34ImY6g4AXwKO/d2kG UnVSuyUD0qaebN4mXVN123o5wEMh2xLxukRMxLcUKp6tUIUxl0QNHhk58tElcouzXJA0 LO0w== X-Gm-Message-State: AO0yUKWLJguT/juWfYb95Y5qcKgmxJpzIcKMT/ieSaPdpAMlgO5ptcKg vpiCvuNbYUk+u6GOAJPZXLLcv8dpOG6FsenuKXE= X-Google-Smtp-Source: AK7set8l8P1ZEDzcVosQ9b5rwO4L1HK6LAMkTyV/xJ066/ZIc4EigAYg6O9Y9U6cctXyaZnWDaLcK0HLF1sfhlPdvcA= X-Received: by 2002:a17:902:6807:b0:194:6fc0:aaae with SMTP id h7-20020a170902680700b001946fc0aaaemr2503365plk.6.1677680910220; Wed, 01 Mar 2023 06:28:30 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=owinebar@gmail.com; helo=mail-pl1-x634.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:303878 Archived-At: --000000000000b3443e05f5d7867f Content-Type: text/plain; charset="UTF-8" On Wed, Mar 1, 2023, 9:10 AM Randy Taylor wrote: > > I think the JSON modes are prog-modes just because they are attached to > the javascript modes in some way (usually derived from it). I'm not sure > how much weight we can assign to certain modes deriving from other modes > and saying we should do the same (especially in the case of ELPA/MELPA > modes); instead we should ask which mode makes the most sense to derive > from. Although there is the argument for consistency that you mentioned... > Perhaps since data serialization formats can be used to store data structures in source files in a portable way, it makes sense to write generic modes for them that can be adapted to specific PL modes? I'm sure JSON developed in the opposite direction, but would it have been better to start with JSON mode then embed it in JavaScript/Python/etc modes from the start? Lynn --000000000000b3443e05f5d7867f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Mar 1, 2023, 9:10 AM Randy Taylor <dev@rjt.dev> wrote:

I think the JSON modes are prog-modes just because they are attached to the= javascript modes in some way (usually derived from it). I'm not sure h= ow much weight we can assign to certain modes deriving from other modes and= saying we should do the same (especially in the case of ELPA/MELPA modes);= instead we should ask which mode makes the most sense to derive from. Alth= ough there is the argument for consistency that you mentioned...

Perhaps since dat= a serialization formats can be used to store data structures in source file= s in a portable way, it makes sense to write generic modes for them that ca= n be adapted to specific PL modes?
I'm sure JSON= developed in the opposite direction, but would it have been better to star= t with JSON mode then embed it in JavaScript/Python/etc modes from the star= t?
Lynn


--000000000000b3443e05f5d7867f--