From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#53749: 29.0.50; [PATCH] Xref backend for TeX buffers Date: Sun, 27 Feb 2022 19:42:55 +0100 Message-ID: <864k4k2lsg.fsf@gnu.org> References: <87pmnad7n3.fsf@gmail.com> <87czj9dhfx.fsf@gmail.com> 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="9617"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: 53749@debbugs.gnu.org, David Fussner To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 19:44:37 2022 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 1nOOX7-0002Ov-2Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 19:44:37 +0100 Original-Received: from localhost ([::1]:48454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOOX5-0003xL-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 13:44:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOOWY-0003vY-RE for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 13:44:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOOWY-0007RC-DX for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 13:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOOWY-00049x-Bk for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 13:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 18:44:02 +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: patch Original-Received: via spool by 53749-submit@debbugs.gnu.org id=B53749.164598739715931 (code B ref 53749); Sun, 27 Feb 2022 18:44:02 +0000 Original-Received: (at 53749) by debbugs.gnu.org; 27 Feb 2022 18:43:17 +0000 Original-Received: from localhost ([127.0.0.1]:59207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOOVo-00048t-Vp for submit@debbugs.gnu.org; Sun, 27 Feb 2022 13:43:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOOVn-00048g-9t for 53749@debbugs.gnu.org; Sun, 27 Feb 2022 13:43:15 -0500 Original-Received: from [2001:470:142:3::e] (port=54422 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOOVh-0007MC-2h; Sun, 27 Feb 2022 13:43:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=sL/+jcbohWc/odqt66v0yqvRuyvd36sR/FDyPGjtQ/0=; b=i+dHj06LfboVDCJheM2d psR/ZPC8owPRXUJ+Opek/b5eDKcudj2tTapC7Mrvz8HFS7L3JXTSVS1cxbOxWJ8+FnQ+68BGYcZBi oMn8dH09n3Ii48soAEPOYj8UIPP0GHYg+PKGnEV/BJL/zn1ejrR1+WoNAdt/5HXViYUul20WT/nRg q3MEE2qgGEUFFKokgQtKgkJDg91YHKG096Jo/3i0UvIwldyW6GDF5ZovTgj3K1ArO6KFt/sWM/+7P vdenpxJ2T/bgusyr3/X9grT+VKktrLAOa2GE8zPYSPDkvd6S/OAK3t5qzj6bctrTD6v/LJrbE9BLh jX7yYWOsDCwJgA==; Original-Received: from p5b326363.dip0.t-ipconnect.de ([91.50.99.99]:50422 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOOVg-00006d-B8; Sun, 27 Feb 2022 13:43:08 -0500 In-Reply-To: <87czj9dhfx.fsf@gmail.com> (Augusto Stoffel's message of "Sat, 26 Feb 2022 11:56:50 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:227740 Archived-At: Augusto Stoffel writes: > If you type \label{something}, as opposed to using the RefTeX command > to add a label (or if you edit the label by hand) then RefTeX will not > reparse the document and get out of sync. If you know the known labels to RefTeX are out of sync, you can issue `C-c )' with a prefix argument: ,----[ C-h f reftex-reference RET ] | reftex-reference is an interactive native compiled Lisp function in | =E2=80=98reftex-ref.el=E2=80=99. |=20 | (reftex-reference &optional TYPE NO-INSERT CUT) |=20 | Make a LaTeX reference. Look only for labels of a certain TYPE. | With prefix arg, force to rescan buffer for labels. This should only be | necessary if you have recently entered labels yourself without using | reftex-label. Rescanning of the buffer can also be requested from the | label selection menu. | The function returns the selected label or nil. | If NO-INSERT is non-nil, do not insert \ref command, just return label. | When called with 2 C-u prefix args, disable magic word recognition. |=20 | Probably introduced at or before Emacs version 20.1. |=20 `---- Or in the labels *RefTeX select* buffer, you have these choices: r / C-u r Reparse document / Reparse entire document. I usually hit r when I don't find the label I'm looking for. > Or at least that was the case when I still used RefTeX. So it might > be worth considering some cache invalidation scheme there. The question is if it's worth the effort where a remedy is already in place. Best, Arash