From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#41841: 26.3; reftex and tikz's labels Date: Sun, 14 Jun 2020 22:17:10 +0200 Message-ID: <878sgp8ks9.fsf@gnu.org> References: <295a7f3d-f950-67c0-0b39-0be85d6080b3@lsv.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120637"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41841-done@debbugs.gnu.org To: phs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 14 22:18:23 2020 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 1jkZ5D-000VH4-Km for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 22:18:23 +0200 Original-Received: from localhost ([::1]:47762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkZ5C-0002ll-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jun 2020 16:18:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkZ4s-0002ko-CJ for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 16:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkZ4s-0004Sn-37 for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 16:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkZ4r-0008A1-W1 for bug-gnu-emacs@gnu.org; Sun, 14 Jun 2020 16:18:01 -0400 Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jun 2020 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41841 X-GNU-PR-Package: emacs Mail-Followup-To: 41841@debbugs.gnu.org, tsdh@gnu.org, phs@lsv.fr Original-Received: via spool by 41841-done@debbugs.gnu.org id=D41841.159216584731317 (code D ref 41841); Sun, 14 Jun 2020 20:18:01 +0000 Original-Received: (at 41841-done) by debbugs.gnu.org; 14 Jun 2020 20:17:27 +0000 Original-Received: from localhost ([127.0.0.1]:44556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkZ4J-000893-FB for submit@debbugs.gnu.org; Sun, 14 Jun 2020 16:17:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkZ4F-00088o-V6 for 41841-done@debbugs.gnu.org; Sun, 14 Jun 2020 16:17:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52156) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkZ48-0004OL-EZ; Sun, 14 Jun 2020 16:17:16 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:46801) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jkZ47-0005c4-3m; Sun, 14 Jun 2020 16:17:16 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 94B6D27C0054; Sun, 14 Jun 2020 16:17:14 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 16:17:14 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiiedgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesth hqredttderjeenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhu rdhorhhgqeenucggtffrrghtthgvrhhnpedvueefkeeuleekheffffdtieduvdfhffdtgf ekhfejueejudehudekveefvedvhfenucfkphepleefrddvfeeirddufeeirdefudenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec881f.dip0.t-ipconnect.de [93.236.136.31]) by mail.messagingengine.com (Postfix) with ESMTPA id 3B8CA3280059; Sun, 14 Jun 2020 16:17:13 -0400 (EDT) In-Reply-To: <295a7f3d-f950-67c0-0b39-0be85d6080b3@lsv.fr> (phs@lsv.fr's message of "Sat, 13 Jun 2020 23:26:11 +0200") 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:181962 Archived-At: phs writes: > It seems reftex mistakes labels in tikz nodes with genuine \label 's > in LaTeX source. > > To reproduce: > > 1) open a buffer foo.tex in LaTeX mode > > 2) insert (via cut&paste) the following text > > \begin{figure} > \begin{tikzpicture} > \node at (0,0) [label=3D{node 0}] % not a LaTeX label > \end{tikzpicture} > \caption{Figure that!} > \label{myfigure} % only genuine label > \end{figure} Does adding "tikzpicture" to reftex-label-ignored-macros-and-environments work? --8<---------------cut here---------------start------------->8--- reftex-label-ignored-macros-and-environments is a variable defined in =E2= =80=98reftex-vars.el=E2=80=99. Its value is nil You can customize this variable. This variable was introduced, or its default value was changed, in version 24.4 of Emacs. Documentation: List of macros and environments to be ignored when searching for labels. The purpose is to ignore environments and macros that use keyval style label=3Dfoo arguments, but the label has a different meaning than a \label{foo}. Standard \label{...} definitions are never ignored. E.g., TikZ defines several macros/environments where [label=3Dfoo] defines the label to be printed at some node or edge, but it=E2=80=99s not a label used for referencing. Note that this feature is only supported if you are using AUCTeX and the functions =E2=80=98TeX-current-macro=E2=80=99 and =E2=80=98LaTeX-current-environment=E2=80=99 are bound. Also note that this feature might slow down the reftex parsing process for large TeX files. --8<---------------cut here---------------end--------------->8--- In what's going to become Emacs 27.1, we are a bit more conservative and have a whitelist of environments in which we look for label=3Dfoo options. There, the bug doesn't happen anymore, so I'm closing this bug. Thanks, Tassilo