From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ongaro Newsgroups: gmane.emacs.devel Subject: Re: Should yaml-ts-mode inherit from prog-mode? Date: Mon, 13 Mar 2023 18:45:23 -0700 Message-ID: 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="22543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 14 02:46:28 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 1pbtkC-0005dx-2l for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Mar 2023 02:46:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbtjV-0006dH-Vj; Mon, 13 Mar 2023 21:45:45 -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 1pbtjO-0006cX-Dz for emacs-devel@gnu.org; Mon, 13 Mar 2023 21:45:42 -0400 Original-Received: from longisland.snafu.de ([2001:1560:3:255::153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbtjM-0004qF-Co for emacs-devel@gnu.org; Mon, 13 Mar 2023 21:45:38 -0400 Original-X-Trace: 507c64617669642e6f6e6761726f4068616d627572672e64657c33342e3231312e 37342e387c317062746a452d3030304562582d316a7c31363738373538333238 Original-Received: from longisland.snafu.de ([10.153.10.15] helo=localhost) by longisland.snafu.de with esmtpsa (Exim 4.94.2) id 1pbtjE-000EbX-1j for emacs-devel@gnu.org; Tue, 14 Mar 2023 02:45:29 +0100 In-Reply-To: (Daniel Fleischer's message of "Sun, 12 Mar 2023 11:20:55 +0200") X-VISP-ShouldScan: 1 X-VISP-Virus-Check: clean X-VISP-Spam-Score: -0.5 (/) X-VISP-Spam-Report: This message has been scanned on "longisland.snafu.de" to identify if it is considered spam or not. Contact the support hotline for details. Content analysis details: (-0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 JMQ_SPF_NEUTRAL ASKDNS: SPF set to ?all [hamburg.de TXT:v=spf1 include:_spf1.snafu.de] [include:spf.crsend.com ?all] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment X-VISP-Spam-Max-Score: +++++ X-SA-Exim-Connect-IP: 34.211.74.8 X-SA-Exim-Mail-From: david.ongaro@hamburg.de X-SA-Exim-Scanned: No (on longisland.snafu.de); SAEximRunCond expanded to false Received-SPF: pass client-ip=2001:1560:3:255::153; envelope-from=david.ongaro@hamburg.de; helo=longisland.snafu.de X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:304417 Archived-At: Daniel Fleischer writes: > If we look at font lock definitions, org-mode also highlights various > constructs; it doesn't mean it's a programming language. But that's what I mean, the classification as programming language is independent of if something has keywords. It's neither a necessary nor sufficient condition (even if we see it as an indicator). > Please point out where in the YAML spec "yes" is used as a boolean. I probably can skip that since others did this already. > And again, usefulness of highlighting different objects does not mean > it's a programming language. Again, I don't think anyone argues that YAML is a programming language, (even if one can easily produce documents much larger than the original code via anchors and refs and even if one can do pretty crazy things via tags*). The question is if prog-mode may be a better fit for yaml-mode. Since JSON is prog-mode and YAML is a superset of JSON the logical answer appears to be 'yes'. * E.g. try this in Python import yaml y = b'!!python/object/apply:time.sleep [10]' yaml.unsafe_load(y) -- PS: Unrelated to the topic, but since this header is appearing in every mail I probably could ask this question anywhere: > Archived-At: Isn't the gmane.org domain down since years now? I suppose this header may be included due to an outdated Mailman configuration? In any case my actual question is: what is the easiest way to get the corresponding https://lists.gnu.org/archive/ permalink of an article? Is there a magic key-combination in Gnus?