From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Code quality of some -ts-mode major modes Date: Fri, 17 Mar 2023 18:35:45 +0200 Message-ID: <831qlne3oe.fsf@gnu.org> References: <87fsa3g05n.fsf@posteo.net> <87bkkrft9n.fsf@posteo.net> <83a60beb5a.fsf@gnu.org> <87v8izjtf2.fsf@posteo.net> <835yaze6o6.fsf@gnu.org> <87h6ujjs3o.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ruijie@netyu.xyz, casouri@gmail.com, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 17 17:36: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 1pdD4E-0006Vp-0V for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Mar 2023 17:36:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdD3Z-0004h9-7L; Fri, 17 Mar 2023 12:35:53 -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 1pdD3R-0004gg-Rn for emacs-devel@gnu.org; Fri, 17 Mar 2023 12:35:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdD3R-0005Qh-9V; Fri, 17 Mar 2023 12:35:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=eUFrN5Y2B84c/cuf2LUl/GeQg8bBsqt28K5G3VNp934=; b=CGf+2EJVwMtt GaU8+9syq60uKhNcu5hZPhr5PM7ve4xj2g1Yx3izPaEayGj9QhQOqIGOY4n6wSwFprYMDFBPsbNxm FOrFK57LT/L1wO+QX3Y7VY7ZbP4iHIcw9YBD5zpGn5M0ocIb8RMh9xnlz3pScZXl4TXsIMuyNJzid WD3MDzstI2F89B16Cb2UNijA6iyL/KmbDNTb80nKU8CEeNCvvhYE6JrFU6El1hjkDqVXjpXSpmV0C AgaNRik1fGJPyUWBW0Eb9fcaJ/OyeCYxmoekIj8E6MGo9/eZyiursELkbzRo6H9siRF6+wyX/1srN 4SHLK2wMPzFBgTO/I/nJAA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdD3Q-0006of-Oc; Fri, 17 Mar 2023 12:35:45 -0400 In-Reply-To: <87h6ujjs3o.fsf@posteo.net> (message from Philip Kaludercic on Fri, 17 Mar 2023 15:49:15 +0000) 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:304555 Archived-At: > From: Philip Kaludercic > Cc: ruijie@netyu.xyz, casouri@gmail.com, emacs-devel@gnu.org > Date: Fri, 17 Mar 2023 15:49:15 +0000 > > Eli Zaretskii writes: > > >> I don't know of any language with multiple independent implementations > > > > I do. Indeed, most have just one. But not all. > > Could you give me an example that I could try out? One example I know of is sql. I think there's at least one other, but I don't remember which one. > > No you are mistaken. We do want this to signal an error if > > tree-sitter is not compiled in or the grammar is not available. > > But it doesn't, or am I completely oblivious that > > (treesit-ready-p 'something-i-just-made-up) > > just displays a warning? I'm not sure I understand the question. Are you saying that the above is silent, or are you saying that it pops up a warning instead of signaling an error? If the latter, this is the intended behavior; sorry for confusingly saying it should error out.