From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#64830: 30.0.50 C++ treesitter mode no coloration Date: Mon, 26 Aug 2024 18:58:13 -0700 Message-ID: <78DD1528-A12B-4199-9822-157852080027@gmail.com> References: <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> <868qwjjhq3.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) 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="24594"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830@debbugs.gnu.org, Alan Mackenzie , Eli Zaretskii To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 27 04:00:29 2024 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 1silVU-0006H4-GZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 04:00:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1silVG-0005iF-Df; Mon, 26 Aug 2024 22:00:14 -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 1silVC-0005hz-Mo for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 22:00:11 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1silVC-0002RX-Dl for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 22:00:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=E73IhUyKngN79UO2Igq+GXExlJZ10T57TUgLjiL9bhc=; b=GzPoGLfArCP28ek8TkhM6QAvgOAlV4egyfUTdgE9h203qjTulmvhuJj9/GCyJG/YCBDJgBVKMk5L89WbElWZ3cWghPW0yldHZpCWz1ey3iQuX2k2rGOM70AKEObZ0VMfiz7LoruM7ulvvL2LuOY2dwpNGnGukaVrTb5t+QeaaWP6NOpdL1s9Dv+YbgnnkSsK1zPmU09Ej+BRVMPKxXZ1zLDlHWgcWolU3uv2NAyIj6dCtC1Uwg0+tm+3xEypjZjBb/SN/cnlz0UMKa/5autKzGiq6tBO1lT88jmVl3VucOVBJws0HPIp0wiNGfttZCkbLX+wqNDCUUz1GCXLKoSqmQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1silW2-0001Mu-0I for bug-gnu-emacs@gnu.org; Mon, 26 Aug 2024 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64830 X-GNU-PR-Package: emacs Original-Received: via spool by 64830-submit@debbugs.gnu.org id=B64830.17247240255193 (code B ref 64830); Tue, 27 Aug 2024 02:01:01 +0000 Original-Received: (at 64830) by debbugs.gnu.org; 27 Aug 2024 02:00:25 +0000 Original-Received: from localhost ([127.0.0.1]:45733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1silVR-0001Lg-F2 for submit@debbugs.gnu.org; Mon, 26 Aug 2024 22:00:25 -0400 Original-Received: from mail-oo1-f49.google.com ([209.85.161.49]:60720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1silVP-0001LR-L5 for 64830@debbugs.gnu.org; Mon, 26 Aug 2024 22:00:24 -0400 Original-Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-5d5e97b84fbso4039834eaf.1 for <64830@debbugs.gnu.org>; Mon, 26 Aug 2024 18:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724723906; x=1725328706; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=E73IhUyKngN79UO2Igq+GXExlJZ10T57TUgLjiL9bhc=; b=JyXh4FfhfWFTsoAFG5sQ51+w+O1QPecLnq6A4qFrw7lENtgUXc7IPtAtnVnTZ0ckj7 xmQ+4f0amx3hLrDQQKz2519pV67ESrSHvMJqFGL5Apm5FOyZY+/fntJHBxEAbEvFF0IN 3gzUDKefj+T/3FipWGcu1/PQynmTXz/q2Zzd3e44nJU1yUrmugJWN27KAnwLQG4/6kIn IrtObYS4IcbtxBNe3w2re4IjCC0k/M0Jml6EHq1AikDPMWruC3OjiCiUtfUc2bwuNpwR ZEI7NkgNCqMR66L3W97ZWkNGI7dWQ31MbYlZKVGI2Ty2zcY3VLYW9qCDA5LasHflCpM5 H0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724723906; x=1725328706; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E73IhUyKngN79UO2Igq+GXExlJZ10T57TUgLjiL9bhc=; b=d7Mm3j3JNEbbtjXCspHkCc52wQoqxEv6Fj2aGUWdBjtupfhjRgnwfbPHyxc8pmoeFj t7TjhDNKBkCTt1arTP3QwHDx1DP1CF9XGxGpv6LnH0u4uoENkDRdhY3Gqu3Iy4ku7xBf /DQ0MDz6nCFSXDtDIUwT2LswfByjXXlmvCmIyvPcFjfC5TEL3hdlcZg7hgi9FkS/FSKZ rATAJk59kd3plxbqw7Jkz7z8bFYsXBrolLvkk773yOg2ILCNDPc2Q1GDB3ux4RdMwKNI Nx40iT/scYRrul5rDVG/+GsTzioTojsARj9Va58/vmIj/ctG8dyMPyu0qFAa3RkXNnMQ S4Tw== X-Forwarded-Encrypted: i=1; AJvYcCX/k52g/w+PXLycKEmUsvpCoUowqpsre1mfHUGwga1pFqn1w4JQva3Ms9hnij77TmHvoFOlLw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxHizNuJWERYdzlomQzQ7rOM7B0DgInACDv7pJOcllC1o+0Zxid bMv3sKZubPzXIdYM+Alnix1B4TyDotuDAIuV72AzrofS5tKW8IfH X-Google-Smtp-Source: AGHT+IGfDIYY0LyOm5QMxcSB1vbYNJEzrOHOSkz5WJRq3IC79V6/SqkOMJ/b4iRyjheSDG6XQ6pyLQ== X-Received: by 2002:a05:6808:2dcb:b0:3d9:33d0:cc4b with SMTP id 5614622812f47-3def3e2c524mr1880988b6e.0.1724723905710; Mon, 26 Aug 2024 18:58:25 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:fd58:c8a8:ed8f:39fa]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7cd9ad5528esm8304278a12.72.2024.08.26.18.58.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Aug 2024 18:58:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3776.700.51) 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:290799 Archived-At: > On Aug 26, 2024, at 3:25=E2=80=AFPM, Stefan Kangas = wrote: >=20 > Alan Mackenzie writes: >=20 >> How about outputting a message looking something like this: >>=20 >> Loading /home/acm/.emacs.d/tree-sitter/libtree-sitter.so ....Done >>=20 >> .. This wouldn't get in the way, yet might well prevent some of the >> problems I've been having over the last few days. >=20 > Makes sense to me, FWIW. Perhaps we should have a knob to > enable/disable such messages though. >=20 > I'm also not sure what should be the default. Perhaps we should > experiment with it and take a final decision when we have some > experience with using it. Yeah, that=E2=80=99ll be a very useful feature. To determining which = grammar my Emacs instance loaded, I had to delete the object file and = see if Emacs complains it can=E2=80=99t find any grammar. I think it=E2=80= =99s fine to print this to message buffer by default, it=E2=80=99ll only = happen once and we already do such things for loading a elisp file.=20 I searched a bit and it seems ldaddr can find the location of a loaded = shared library. Doesn=E2=80=99t seem hard to implement. I also want a lisp function that can return the location of a loaded = grammar file, would that be an overkill if we have the aforementioned = printing? Yuan=