From unknown Wed Jun 18 23:14:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51054 <51054@debbugs.gnu.org> To: bug#51054 <51054@debbugs.gnu.org> Subject: Status: 29.0.50; [PATCH] Improve finding of external documents Reply-To: bug#51054 <51054@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:14:08 +0000 retitle 51054 29.0.50; [PATCH] Improve finding of external documents reassign 51054 emacs submitter 51054 Arash Esbati severity 51054 normal tag 51054 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 03:28:48 2021 Received: (at submit) by debbugs.gnu.org; 6 Oct 2021 07:28:48 +0000 Received: from localhost ([127.0.0.1]:42363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY1M5-0001n5-6R for submit@debbugs.gnu.org; Wed, 06 Oct 2021 03:28:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:50078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY1Lq-0001mi-59 for submit@debbugs.gnu.org; Wed, 06 Oct 2021 03:28:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY1Lp-0001ym-VA for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 03:28:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40916) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mY1Lp-0000Rp-Nb for bug-gnu-emacs@gnu.org; Wed, 06 Oct 2021 03:28:29 -0400 Received: from p4fe3eb24.dip0.t-ipconnect.de ([79.227.235.36]:49444 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mY1Ll-0005Y7-J2; Wed, 06 Oct 2021 03:28:29 -0400 From: Arash Esbati To: emacs-bugs Subject: 29.0.50; [PATCH] Improve finding of external documents Date: Wed, 06 Oct 2021 09:26:39 +0200 Message-ID: <86mtnmr4uo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Tassilo Horn 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 (---) --=-=-= Content-Type: text/plain Hi all, attached is a small patch improving RefTeX finding external documents for referencing. Best, Arash --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Improve-finding-external-documents.patch >From 84c5ef108e74ad1e377fcdb43823c4104630b09f Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 5 Oct 2021 16:35:30 +0200 Subject: [PATCH] Improve finding external documents * lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Extend regexp in order to support \externalcitedocument macro and a second optional argument provided by LaTeX package xr-hyper. --- lisp/textmodes/reftex-parse.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index c521a07f19..b8c75cb21b 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el @@ -345,7 +345,17 @@ reftex-parse-from-file ;; Find external document specifications (goto-char 1) - (while (re-search-forward "[\n\r][ \t]*\\\\externaldocument\\(\\[\\([^]]*\\)\\]\\)?{\\([^}]+\\)}" nil t) + (while (re-search-forward + (concat "[\n\r][ \t]*" + ;; Support \externalcitedocument macro + "\\\\external\\(?:cite\\)?document" + ;; The optional prefix + "\\(\\[\\([^]]*\\)\\]\\)?" + ;; The 2nd opt. arg can only be nocite + "\\(?:\\[nocite\\]\\)?" + ;; Mandatory file argument + "{\\([^}]+\\)}") + nil t) (push (list 'xr-doc (reftex-match-string 2) (reftex-match-string 3)) docstruct)) -- 2.33.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 05:15:09 2021 Received: (at 51054) by debbugs.gnu.org; 6 Oct 2021 09:15:09 +0000 Received: from localhost ([127.0.0.1]:42497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY313-0004d2-9B for submit@debbugs.gnu.org; Wed, 06 Oct 2021 05:15:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY30z-0004cB-Ni for 51054@debbugs.gnu.org; Wed, 06 Oct 2021 05:15:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=igTX7E9iqVw5AZUg9IQK/egPjWOQ8QEpgVyaS2MKTbQ=; b=AKz6EA6Sj+PKKKfFrbfWb8W0yb FelKiYTpw9Ppg5PrSCnKchxvBWpTK9A5GdCXZR2KvkBFvCdsv/mo3BSjbO0zCQrgJfXV86jMc84h3 WHhpuaduIVxjF9EQJFiCGMFobiCrGM0QnxaikBWgiXeKEapoxbsuK622abQWORNmo21s=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY30r-0000M5-2m; Wed, 06 Oct 2021 11:14:59 +0200 From: Lars Ingebrigtsen To: Arash Esbati Subject: Re: bug#51054: 29.0.50; [PATCH] Improve finding of external documents References: <86mtnmr4uo.fsf@gnu.org> X-Now-Playing: DJ Screw's _All Work, No Play_: "DJ Screw Mogg Figgas Steady Ballin feat Mobb Figgas " Date: Wed, 06 Oct 2021 11:14:56 +0200 In-Reply-To: <86mtnmr4uo.fsf@gnu.org> (Arash Esbati's message of "Wed, 06 Oct 2021 09:26:39 +0200") Message-ID: <8735pefran.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Arash Esbati writes: > attached is a small patch improving RefTeX finding external documents > for referencing. Thanks; applied to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51054 Cc: 51054@debbugs.gnu.org, Tassilo Horn 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 (---) Arash Esbati writes: > attached is a small patch improving RefTeX finding external documents > for referencing. Thanks; applied to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 05:15:13 2021 Received: (at control) by debbugs.gnu.org; 6 Oct 2021 09:15:14 +0000 Received: from localhost ([127.0.0.1]:42500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY317-0004dS-Fg for submit@debbugs.gnu.org; Wed, 06 Oct 2021 05:15:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:51396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mY315-0004cs-Du for control@debbugs.gnu.org; Wed, 06 Oct 2021 05:15:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Cw/vLCu4p69j6s6Q8Tu3M/mHNgK3cIP4YsHF5C4VpI=; b=L+8ECMEvF0ArmoIdUHDP9GZPJ/ aifkCn1dWhvnPYO9DF8uDx84hEAjnKHm8IxLAuu7l2YCaxMgRk9EVx1bhcPe+oWZwblZKCGOAb+DN WePWhfCf64DO/RZEJQPa77SP0kPWIjzShtxXPY29aEqYcq5AHeJGOBCqqQgPwHb29R1k=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY30y-0000MI-0E for control@debbugs.gnu.org; Wed, 06 Oct 2021 11:15:06 +0200 Date: Wed, 06 Oct 2021 11:15:03 +0200 Message-Id: <871r4yfrag.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51054 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 51054 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 51054 29.1 quit From unknown Wed Jun 18 23:14:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 03 Nov 2021 11: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