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: Thu, 12 Sep 2024 01:06:00 -0700 Message-ID: References: <86h6bk5nnu.fsf@gnu.org> <3C502C2B-829D-42C3-A74A-2A783F5880CE@gmail.com> <868qwjjhq3.fsf@gnu.org> <78DD1528-A12B-4199-9822-157852080027@gmail.com> <86wmk2i2vp.fsf@gnu.org> <29FFAE70-8B01-47CF-A45A-D01C82C56247@gmail.com> <86wmk0hlnr.fsf@gnu.org> <86y14fg95n.fsf@gnu.org> <904ED5D6-11A2-4B54-A60C-F972AF3E91B4@gmail.com> <865xr2pf2y.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="19166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64830-done@debbugs.gnu.org, Alan Mackenzie , Stefan Kangas To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 12 10:08:25 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 1soesK-0004os-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Sep 2024 10:08:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soeru-0002f4-FM; Thu, 12 Sep 2024 04:07:58 -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 1soerr-0002TH-FW for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:07:55 -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 1soerr-0004R7-6T for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:07:55 -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=wkCECOX8y1jT0XB71+fGKTNS94wRPWJ/ssVlNHIjIEE=; b=iUk0YIRC1lnxI5hlR7j5uHH4ZXbjjiu/Y3QgAorQRK7QoGeYnxiT950iNOCOUiR77pGK90iehj4XayMMh/wVD5YTzkK5x0oeN+3U0/YRbuipIbgaskii5yN6tciHWs94xKy6orR8sKZSzp7AWlsqGvKsUlpiDCH5rIQdYD5PNB9gM0pri3phZrMGQOl5e0zIH+oYWLr4EpzEIqKh7IVIQBaP4F/jZ3kyCCTCTWf1TLiMGB0mQMy80EJghzdS67x3lrQfwlOWeE0Vxp6JmNzP8fTp3K94k2hSjYSm/CKJoga2QfDUTcDF92EwzV0tumRMrOut6m3rpkXhYLdc0bCk6A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1soery-0001Xj-Jp for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2024 04:08:02 -0400 Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Sep 2024 08:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64830 X-GNU-PR-Package: emacs Mail-Followup-To: 64830@debbugs.gnu.org, casouri@gmail.com, david.come@ageagle.com Original-Received: via spool by 64830-done@debbugs.gnu.org id=D64830.17261284485880 (code D ref 64830); Thu, 12 Sep 2024 08:08:02 +0000 Original-Received: (at 64830-done) by debbugs.gnu.org; 12 Sep 2024 08:07:28 +0000 Original-Received: from localhost ([127.0.0.1]:40066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soerP-0001Wl-Ho for submit@debbugs.gnu.org; Thu, 12 Sep 2024 04:07:27 -0400 Original-Received: from mail-pl1-f176.google.com ([209.85.214.176]:59863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soerN-0001WS-TX for 64830-done@debbugs.gnu.org; Thu, 12 Sep 2024 04:07:26 -0400 Original-Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-201d5af11a4so8195855ad.3 for <64830-done@debbugs.gnu.org>; Thu, 12 Sep 2024 01:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726128373; x=1726733173; 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=wkCECOX8y1jT0XB71+fGKTNS94wRPWJ/ssVlNHIjIEE=; b=GbtWNSsIv3gjV5EBj9YcE12OGTEUZ9SyeOkl+htlsQKbNdd/X16GOOdkur3+iM8RIO x5Jduswu8wl9DRJVyuFsXq62cFoydz7SJCshLamAZsrHOYfTA+kVtCQxHITDY9kN/b93 q7dNz8EMg6fm1LkVzfLBDTT2nLB1QKWLVuXLyStN27Vk6a/KBmGxt0stgNSafLtsocNd Z0jChExVYeFt09r69Wsu8ZwDRN59roIIzBYXdi868xwLmo+tWwywH2nakfoQ+8Ix/AlT MastApIrLH0yDgXFjFDHKFkUnDZiswuYcukOroduIdq5SKLtFJmNRsf40kZiHGhTL9E6 EGnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726128373; x=1726733173; 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=wkCECOX8y1jT0XB71+fGKTNS94wRPWJ/ssVlNHIjIEE=; b=Q0vXvxp/GiMYHewIfFkgqenL0dprt9NNJg1FzP2GqYcUdDbRGG0JSxkU6tiF76TPlL nCytOf1JoILBbBAJsGPoHtJZQXzSUdNdjBoNd25Kyy6RPSMQYjpIoI83nHtSMgIZMtnC Bm0/dlNYxaryv8PRjHM/T5gDl2CzvH5nF2IQ7WAOXCtDT31TtJau9JSK7rwoY8LUFhsG +Iy1izhfb+6p8jwTe/ZumCF+xaXR/rtvOTVOO1DX/Kak0ckQqP0R9gWN5+g4StXTpG9p Zepzr/QsxzS+qZ5i1wniG5ICa29cE6UfVQtJVpBNm8ctPqzvtl55nuEczNJLj/jZfEZ8 KjQg== X-Forwarded-Encrypted: i=1; AJvYcCVp5gXz3U6x/IEl+cuVtjdbZuxsLhi4QvXlSQokOsZWJSZeI2pPZfFb7d6nstlSRpElJV/DRzXYreMk@debbugs.gnu.org X-Gm-Message-State: AOJu0YwMniYtLZJ5IFTYhVgwFeeUxTnOu/yyQDwMPAmKB3syC6SB4jUJ v/tuPhIaHPLzwTv+aswcop4nEL7VpphM9TwcO8v2E06Xg3Ev9Prw X-Google-Smtp-Source: AGHT+IE42FcJh+Q35YXVdG/3lL/mZU+LbPipIviltZq0t5Wruh4Mi+I3iq2T3E1DvVR1lkGAh6LwkA== X-Received: by 2002:a17:903:2349:b0:207:3a53:fe67 with SMTP id d9443c01a7336-2076e37b1d6mr32151145ad.32.1726128372629; Thu, 12 Sep 2024 01:06:12 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:5922:91:f01d:e306]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2076afe9da3sm9895315ad.239.2024.09.12.01.06.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2024 01:06:12 -0700 (PDT) In-Reply-To: <865xr2pf2y.fsf@gnu.org> 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:291623 Archived-At: > On Sep 11, 2024, at 5:09=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Yuan Fu >> Date: Tue, 10 Sep 2024 22:09:04 -0700 >> Cc: stefankangas@gmail.com, >> acm@muc.de, >> 64830@debbugs.gnu.org >>=20 >> Done. Please take a look at the latest patch, thanks! >=20 > LGTM, but... >=20 >> +struct treesit_loaded_lang >> +{ >> + /* The language object. */ >> + TSLanguage *lang; >> + /* The path to the shared library. */ >> + const char *filename; >> +}; >> + >=20 > ..."path" again. >=20 >> +DEFUN ("treesit-grammar-location", Ftreesit_grammar_location, >> + Streesit_grammar_location, >> + 1, 1, 0, >> + doc: /* Return the absolute file name of the grammar file for = LANGUAGE. >> + >> +If LANGUAGE isn't loaded yet, load it first. If the langauge can't = be > ^^^^^^^^ > A typo. Oops (^^;) That=E2=80=99s embarrassing. Ok, I fixed everything and = pushed to master. Also, since the original problem is fixed, closing this report. Yuan=