From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 21 21:22:30 2019 Received: (at submit) by debbugs.gnu.org; 22 Oct 2019 01:22:30 +0000 Received: from localhost ([127.0.0.1]:58092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMisY-00051I-9p for submit@debbugs.gnu.org; Mon, 21 Oct 2019 21:22:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:46473) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMc19-0000sW-A6 for submit@debbugs.gnu.org; Mon, 21 Oct 2019 14:02:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50490) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMc18-0001qk-0l for bug-auctex@gnu.org; Mon, 21 Oct 2019 14:02:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMc16-0003RO-Oe for bug-auctex@gnu.org; Mon, 21 Oct 2019 14:02:53 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMc16-0003Qq-FQ for bug-auctex@gnu.org; Mon, 21 Oct 2019 14:02:52 -0400 Received: by mail-wr1-x42d.google.com with SMTP id w18so14501376wrt.3 for ; Mon, 21 Oct 2019 11:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=xl2AI01z0C35063QM7OswmQ6teoqchW4Gm4N/JN/Z2c=; b=h9hzOQMQogVSmMQ5ypLmGsfYXALEr1JpV1IhKkjJg42LAEfT5wVqKGfQLJ7Xboo12G 4/jIR41/sx2I7JwhiLU8AZ5y7utrlfx+/DfuLjWDEXrmGRY49vn4Skt/M1pavaYFvT1m DZVT9sS8soJ8sonVCUuhLJV82AcHk2IUoENmxnvrgO+yuwYuwN8xR1t+VWtCS2dJVCIA ff/EFo/KgWD81lZ2dIgic9Uutdvxu0On/kxDFDH9+LoFq1UxsKaXeGk8b37uDHIuNTaq iluIB8HbeuolA52GdWr827CQXyVWqoFvntwrAEl57H+blpBsmmcmmdDhkubC2LpzWZLY bQyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=xl2AI01z0C35063QM7OswmQ6teoqchW4Gm4N/JN/Z2c=; b=B9JyLE2n/FRweyfTRzB+8Lsvbfv+QPG7nJn2Jkh7DR+vgfIHGC3Rz2TixSQ13m/XA6 hrF1PIzaJh0TIuYEuLwL2kJEOvj6WutwUsefCax9TUT4UlrHsfTpO27bxpacwJ/4UWSo GMs7W2kHnSsc2lQD0azsaD0GH6IxV/xlh0H4AnodxzANgDRfYg2RgvywZsGSsqrquamW 7llZb92byRx0kJ4/DR3Yjd4dPFNEBFocB4KQnP/nzfwfjCCpIcPMFpYy35adMbGxY0iB vpk3RFpBQVBOgPNrFDY6prfsy+AjGVzgZBGVR9HMdlw2jLMB5VFmSSxieP/nbRjGZ+pC UoNg== X-Gm-Message-State: APjAAAV0ew93V/K5I5swBd3mFqSK4YxBpdJCOrb/NTNST3FlhCSVJ5e1 HGZ0A5ammuE6dBTRzuW+B2lSz7yW X-Google-Smtp-Source: APXvYqwY9bRoa2KRcDvuBWZNCV6YcS0O/jJTxkazchHPUO36bLiok8JJ0UvogPbEEV3vED69nTlhSQ== X-Received: by 2002:a5d:614a:: with SMTP id y10mr10118150wrt.164.1571680970117; Mon, 21 Oct 2019 11:02:50 -0700 (PDT) Received: from [192.168.21.147] (dmz02.dagstuhl.de. [192.76.146.51]) by smtp.googlemail.com with ESMTPSA id y13sm23437054wrg.8.2019.10.21.11.02.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 11:02:48 -0700 (PDT) To: bug-auctex@gnu.org From: =?UTF-8?B?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= Subject: bug in reftex: Change label and refs Message-ID: Date: Mon, 21 Oct 2019 19:02:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 21 Oct 2019 21:22:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) If I have this file: \begin{document} \ref{test} test \section{test}\label{test} \end{document} and I use "Change label and refs" I get this file: \begin{document} \ref{x} test \section{x}\label{x} \end{document} It doesn't make sense to change anything within \section{}. It should be limited to \ref and variants, and \label, perhaps with a customized var that contains all commands that take labels and which argument is the label, so that users can extend it. Emacs : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian Package: 11.91 current state: ============== (setq AUCTeX-date "2017-07-24" window-system 'x LaTeX-version "2e" TeX-style-path '("/var/lib/auctex/emacs25/" "/usr/share/emacs/site-lisp/auctex/style" "/home/manu/.emacs.d/auctex/.auctex-auto" "/home/manu/.emacs.d/auctex/style" ".auctex-auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Index" "makeindex %s.idx" TeX-run-index nil t :help "Run makeindex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command") ) ) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 23 11:58:40 2019 Received: (at 37861-done) by debbugs.gnu.org; 23 Oct 2019 15:58:40 +0000 Received: from localhost ([127.0.0.1]:34846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNJ1z-0003HR-Qa for submit@debbugs.gnu.org; Wed, 23 Oct 2019 11:58:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNJ1x-0003HD-3F for 37861-done@debbugs.gnu.org; Wed, 23 Oct 2019 11:58:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iNJ1r-0005NN-Sp; Wed, 23 Oct 2019 11:58:31 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:41037) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1iNJ1n-0000Rh-2e; Wed, 23 Oct 2019 11:58:29 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 6DA4921F69; Wed, 23 Oct 2019 11:58:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 23 Oct 2019 11:58:26 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrkeelgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecukfhppeekgedrudefvddrle elrdegieenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghu thhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpe epghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from thinkpad-t440p (p5484632e.dip0.t-ipconnect.de [84.132.99.46]) by mail.messagingengine.com (Postfix) with ESMTPA id A142E80064; Wed, 23 Oct 2019 11:58:25 -0400 (EDT) From: Tassilo Horn To: Manuel =?utf-8?B?TMOzcGV6LUliw6HDsWV6?= Subject: Re: bug#37861: bug in reftex: Change label and refs References: Date: Wed, 23 Oct 2019 17:58:24 +0200 In-Reply-To: ("Manuel \=\?utf-8\?B\?TMOzcGV6LUliw6HDsWV6Iidz\?\= message of "Mon, 21 Oct 2019 19:02:47 +0100") Message-ID: <87h83zxxlr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37861-done Cc: 37861-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez writes: Hi Manuel, > If I have this file: > > \begin{document} > \ref{test} > test > \section{test}\label{test} > \end{document} > > and I use "Change label and refs" I get this file: > > \begin{document} > \ref{x} > test > \section{x}\label{x} > \end{document} > > It doesn't make sense to change anything within \section{}. I can reproduce that with the current Emacs master (to be Emacs 27). While I agree with you that this doesn't make sense in your example, I don't see how we could make it the way you want without having the risk of missing some occurrences. There are so many \ref and \label variants, and of course the user is free to add their own, i.e, by wrapping existing ones, too. Well, at least it's a query-replace so you are asked at each occurrence going to be replaced (unless you answer with !). > It should be limited to \ref and variants, and \label, perhaps with a > customized var that contains all commands that take labels and which > argument is the label, so that users can extend it. Given that it is quite uncommon to have a \ref that equals a \section title (at least RefTeX suggests something like sec:title-with-hypens by default), I'd rather leave it as it is. Having to customize a hypothetical reftex-ref/label-macro-regexp to match any \ref/\label variant whose default value will probably be frequently not up-to-date with the latest LaTeX packages doesn't seem justified. I'm closing this report for that reason. Bye, Tassilo From unknown Sun Jun 22 11:38:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator