From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers Date: Sun, 09 Jun 2024 17:03:43 -0400 Message-ID: References: <831qf1mgjl.fsf@gnu.org> <87cyyj9rpp.fsf@gnu.org> <65793.1694843596@localhost> <83ba27b7-4d28-4a3f-b803-4bc49f62986c@yandex.ru> <82993b86-0f34-4adb-a392-c74db5176d14@yandex.ru> <86v832z5lp.fsf@gnu.org> <6efddf34-1f18-41c8-9125-b6b2e3ad3d21@yandex.ru> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 53749@debbugs.gnu.org, ikumi@ikumi.que.jp, David Fussner , arash@gnu.org, Stefan Kangas , tsdh@gnu.org, Eli Zaretskii To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 09 23:41:36 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 1sGQIB-0007tu-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jun 2024 23:41:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGQHQ-00080b-57; Sun, 09 Jun 2024 17:40:48 -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 1sGQHN-0007zZ-Tz for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 17:40:46 -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 1sGQHN-0002zK-LV for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 17:40:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGQHd-0000KQ-V3 for bug-gnu-emacs@gnu.org; Sun, 09 Jun 2024 17:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jun 2024 21:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53749 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: pending patch Original-Received: via spool by 53749-submit@debbugs.gnu.org id=B53749.17179692301132 (code B ref 53749); Sun, 09 Jun 2024 21:41:01 +0000 Original-Received: (at 53749) by debbugs.gnu.org; 9 Jun 2024 21:40:30 +0000 Original-Received: from localhost ([127.0.0.1]:34435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGQH7-0000I0-2Z for submit@debbugs.gnu.org; Sun, 09 Jun 2024 17:40:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:21403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGPhv-0003v7-VV for 53749@debbugs.gnu.org; Sun, 09 Jun 2024 17:04:08 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9322A80882; Sun, 9 Jun 2024 17:03:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1717967024; bh=sI/l2mX7CaYBHBtBDb+A6Ka+DXmvsWGrTk/2ZNMXtfE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lzEiXVVUMSp0Nfa90l1xjDpXu1tQTk3qUmB1i63OIUXoBZl5Op+kraWXS3tva9JVB TyofMyRdPdfssyTfy9lR0543PVGik63XC2UZj7tCk4Ztq/z9bcwhmzslTylgpFPslg lfwlZOO1WTuIOgLqx17Q9nZlFwLabNOTWrnyHHIPGUmMLj/FbiYi4108V60QLqjQ0d uWEalgLf/gJwdBsyofxeMOKpYeWK9o/M7ICaAkAsqY4VoBC62KFuG2OK7bCHHaQmF2 ClNP6zWVNUvoMBGFtwXEtikFTiT3zQzuSEQBlG1NUeHjgfYPLXZGCboZItZXL8Rzri EyUxCaapKP17w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8B4DC80781; Sun, 9 Jun 2024 17:03:44 -0400 (EDT) Original-Received: from pastel (unknown [24.140.236.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 43968120351; Sun, 9 Jun 2024 17:03:44 -0400 (EDT) In-Reply-To: <6efddf34-1f18-41c8-9125-b6b2e3ad3d21@yandex.ru> (Dmitry Gutov's message of "Sun, 9 Jun 2024 21:45:40 +0300") 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:286988 Archived-At: >>> +;; Populate `semantic-symref-filepattern-alist' for the in-tree modes; >>> +;; AUCTeX is doing the same for its modes. >>> +(with-eval-after-load 'semantic/symref/grep >>> + (defvar semantic-symref-filepattern-alist) >>> + (push '(latex-mode "*.[tT]e[xX]" "*.ltx" "*.sty" "*.cl[so]" >>> + "*.bbl" "*.drv" "*.hva") >>> + semantic-symref-filepattern-alist) >>> + (push '(plain-tex-mode "*.[tT]e[xX]" "*.ins") >>> + semantic-symref-filepattern-alist) >>> + (push '(doctex-mode "*.dtx") semantic-symref-filepattern-alist)) >> Doesn't this stuff rather belong in semantic itself? > Good point. FWIW, I think the responsability of `symref.el` is to provide hooks like the `semantic-symref-filepattern-alist` var along with the code that uses them, but the mode-specific settings, such as knowledge about which glob patterns should be used for `latex-mode` belong to the corresponding mode. Stefan