From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60525: 29.0.60; tree-sitter support in semantic-symref Date: Thu, 05 Jan 2023 19:29:35 +0200 Organization: LINKOV.NET Message-ID: <86mt6x73wo.fsf@mail.linkov.net> References: <864jt7xzku.fsf@mail.linkov.net> <83pmbuz88u.fsf@gnu.org> <83a62yz18b.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36366"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 60525@debbugs.gnu.org, larsi@gnus.org, dgutov@yandex.ru To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 18:57:45 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 1pDUUq-0009GP-JI for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 18:57:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDUUG-0002Vh-0M; Thu, 05 Jan 2023 12:57:08 -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 1pDUUD-0002SV-1d for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:05 -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 1pDUUC-0005VZ-PN for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDUUC-0008EU-LV for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:57:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 17:57:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60525 X-GNU-PR-Package: emacs Original-Received: via spool by 60525-submit@debbugs.gnu.org id=B60525.167294136631454 (code B ref 60525); Thu, 05 Jan 2023 17:57:04 +0000 Original-Received: (at 60525) by debbugs.gnu.org; 5 Jan 2023 17:56:06 +0000 Original-Received: from localhost ([127.0.0.1]:52802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTG-0008BF-F6 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:06 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45227) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTE-0008Ag-TR for 60525@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:05 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 8F97960004; Thu, 5 Jan 2023 17:55:56 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Wed, 04 Jan 2023 13:20:26 -0500") 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:252618 Archived-At: >>>> >> On 03/01/2023 20:06, Juri Linkov wrote: >>>> >> > + (c-ts-mode "*.[ch]") >>>> >> > (c++-mode "*.[chCH]" "*.[ch]pp" "*.cc" "*.hh") >>>> >> > + (c++-ts-mode "*.[chCH]" "*.[ch]pp" "*.cc" "*.hh") >>>> >> > (html-mode "*.html" "*.shtml" "*.php") >>>> >> > (mhtml-mode "*.html" "*.shtml" "*.php") ; FIXME: remove >>>> >> > ; duplication of >>>> >> > @@ -53,7 +55,10 @@ semantic-symref-filepattern-alist >>>> >> > ; major mode definition? >>>> >> > (ruby-mode "*.r[bu]" "*.rake" "*.gemspec" "*.erb" "*.haml" >>>> >> > "Rakefile" "Thorfile" "Capfile" "Guardfile" "Vagrantfile") >>>> >> > + (ruby-ts-mode "*.r[bu]" "*.rake" "*.gemspec" "*.erb" "*.haml" >>>> >> > + "Rakefile" "Thorfile" "Capfile" "Guardfile" "Vagrantfile") >>>> >> > (python-mode "*.py" "*.pyi" "*.pyw") > > BTW, I see that the info provided by `semantic-symref-filepattern-alist` > could be (re)used also in `C-u M-x grep`. Indeed, another duplication with: (defcustom grep-files-aliases '(("all" . "* .*") ("el" . "*.el") ("ch" . "*.[ch]") ("c" . "*.c") ("cc" . "*.cc *.cxx *.cpp *.C *.CC *.c++") ("cchh" . "*.cc *.[ch]xx *.[ch]pp *.[CHh] *.CC *.HH *.[ch]++") ("hh" . "*.hxx *.hpp *.[Hh] *.HH *.h++") ("h" . "*.h") ("l" . "[Cc]hange[Ll]og*") ("am" . "Makefile.am GNUmakefile *.mk") ("m" . "[Mm]akefile*") ("tex" . "*.tex") ("texi" . "*.texi") ("asm" . "*.[sS]"))