From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: `M-q' uses tree-sitter now? Date: Sun, 18 Dec 2022 19:08:30 +0100 Message-ID: <6CBF6ED9-1ECB-4313-B5E2-3CE66931CDEB@thornhill.no> References: <5B81ABF1-29FA-4624-A091-533363344CF1@thornhill.no> <838rj4fx86.fsf@gnu.org> 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="1409"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, eduardoochs@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 18 19:22:50 2022 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 1p6yJG-0000CE-1e for ged-emacs-devel@m.gmane-mx.org; Sun, 18 Dec 2022 19:22:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6yIg-0005aO-Op; Sun, 18 Dec 2022 13:22:14 -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 1p6yIe-0005Zv-Ft for emacs-devel@gnu.org; Sun, 18 Dec 2022 13:22:12 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6yIc-0005e5-8j; Sun, 18 Dec 2022 13:22:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1671387726; 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=+fZwlRjAA6+icsJ49z9nYzOIg5+rOKhUUgs+s5Q4ey8=; b=m9N+IANdYfaf2S1Hp1JZs6gt1zknM+LLhRxoqM/g+euK/wijoDb8nH6NkrxrZgNFFpW69S QwbjOz13/sC1fSpg9/mVSU4dygVcRg2qRqjAg4eKSdQADjBKJJxoI5TrWYuFF4tgujeh5U fJkIomfM4WBoJhsr3zolyekh6z56nVO+MJDZnEbAiWMBIR+IGm8VOgqIeYstID7L5gGY1+ bPGf26SrCtynez2vb/4JEp4OLtsk1iMJR8rIKhvQPHurX+W5sTxOI7ddhPpiIAwN54Stbw Tv2CQj/exdQRR5sTLNhociIWrqDajk93H1GX9r3hwy3suIc3xHIdtbnCzihWlQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <838rj4fx86.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.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, 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:301616 Archived-At: On 18 December 2022 18:16:57 CET, Eli Zaretskii wrote: >> Date: Sun, 18 Dec 2022 15:53:29 +0100 >> From: Theodor Thornhill >>=20 >> Strange=2E Shouldn't it be enough to put the require in the eval-when-c= ompile? Is anything else needed for the function to be picked up? > >His Emacs was built without tree-sitter, would be my guess=2E We need >to call treesit-available-p when this can happen, before calling any >treesit functions that might not be fboundp=2E Right, makes sense=2E I guess this can occur other places as well=2E I can= look around and see if it's needed other places=2E Theo