From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61155: 29.0.60; build failures tree sitter Date: Mon, 30 Jan 2023 14:22:10 +0100 Message-ID: References: <7581-Sun29Jan2023210007+0000-jpff@codemist.co.uk> <877cx4z7lz.fsf@gmail.com> <87cz6w1c93.fsf@thornhill.no> <834js85fhe.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 61155@debbugs.gnu.org, jpff@codemist.co.uk To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 30 14:30:58 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pMUFN-0004nS-DX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Jan 2023 14:30:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMU8j-0000Nz-DM; Mon, 30 Jan 2023 08:24:05 -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 1pMU7j-000674-0y for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMU7i-00066y-Kx for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMU7i-0006rN-Dr for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2023 13:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61155 X-GNU-PR-Package: emacs Original-Received: via spool by 61155-submit@debbugs.gnu.org id=B61155.167508495126312 (code B ref 61155); Mon, 30 Jan 2023 13:23:02 +0000 Original-Received: (at 61155) by debbugs.gnu.org; 30 Jan 2023 13:22:31 +0000 Original-Received: from localhost ([127.0.0.1]:46679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMU6y-0006q5-EP for submit@debbugs.gnu.org; Mon, 30 Jan 2023 08:22:31 -0500 Original-Received: from out-51.mta1.migadu.com ([95.215.58.51]:33448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMU6w-0006pw-Fl for 61155@debbugs.gnu.org; Mon, 30 Jan 2023 08:22:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1675084932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MvFPd468ndJWX5PQXa00axQaZ50FO4++v88zik+/O94=; b=U3hWHHMdUlloXBuhxSW2LPK4/oCS3h6qsBGoOd0loOFp5cNWc+aHC0kTdKkM4kjlUSxxjN 3qmkVzIrmQ9EgZuMPXSIT+R6DI0gxxinTSeeBjkETCjKNoi24ZgsELjoyUKtqXc/795Bkl BE06aXUMQQo0vEOLY7KEcFbOCKYq5hv5wa34nko/hSSrsclEOxfeTW2ffS8R+SpQ+Nk99p bsNVXrF7oB/Acg4skzddnfbdGOqunIyX+M3p+YZMyowu8e5AIACaPQ3Q9MMLtfgIAGC0tn 4TZOjyMRPhMigSECfDSMLuANnEvkEtHGtBntloi4YAD+id++XjAgFZyZ0tYB7Q== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <834js85fhe.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254423 Archived-At: On 30 January 2023 14:17:17 CET, Eli Zaretskii wrote: >> Cc: 61155@debbugs=2Egnu=2Eorg >> Date: Mon, 30 Jan 2023 12:40:40 +0100 >> From: Theodor Thornhill via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> Can you try this and see if the error goes away? >>=20 >> thanks, >> Theo >>=20 >> diff --git a/lisp/treesit=2Eel b/lisp/treesit=2Eel >> index 92833fb007=2E=2Ed7e702bfb8 100644 >> --- a/lisp/treesit=2Eel >> +++ b/lisp/treesit=2Eel >> @@ -568,7 +568,7 @@ treesit--font-lock-level-setter >> res) >> (let ((buffer (car buffers))) >> (with-current-buffer buffer >> - (if (treesit-parser-list) >> + (if (and (treesit-available-p) (treesit-parser-list)) >> (loop (append res (list buffer)) (cdr buffers)) >> (loop res (cdr buffers)))))))) > >I fixed this differently, please see the latest emacs-29 branch: I >disabled the loop altogether=2E > >Why would we need to loop over buffers if tree-sitter is not >available? No need, your fix it fine, i just whipped up something quick in a break he= re :) Theo