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.devel Subject: Patch for reftex.el: master or release branch? Date: Wed, 14 Dec 2022 14:21:23 +0100 Message-ID: <867cyuktnw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 14 14:22:16 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p5RiC-0001mf-1t for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Dec 2022 14:22:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Rhd-000197-Ez; Wed, 14 Dec 2022 08:21:42 -0500 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 1p5Rhb-00015o-HP for emacs-devel@gnu.org; Wed, 14 Dec 2022 08:21:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Rhb-0004lo-7T for emacs-devel@gnu.org; Wed, 14 Dec 2022 08:21:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Z78kuQuxR0gkd9Rc1kWas180PR07CUQC0z2pCLQxm68=; b=YDVhoT+wcc6OFV XNbYeObS4UHV0B2fYX8QTwgHmwc4EjwIMXXV9j1bl98EO9wrrzvuXG2+IJcMkYzx4Ukm7LSaqBS06 Jk/jXWpjgfXW+38GToUbE0GgkvKswH3+/NqRQKAfFykzwGBqOWdhDxScG8UXxq3o3hak4uce2C2jM iEUORFD6MhMt3dGQsJrY1JfFFDw8AeKVhJ8a8z8pnaRs4VOWCQU6uz28iYSTPyYCmRZPeegLhQRFy r8udMfvo5wAvB5lGddpFzACWCkmKW60jeDEPtPuH+BaatEmGEP+qFmdK3xFxZSOLBjCKNONMvG+GV obV9QNXatYBbK34qPxmQ==; Original-Received: from p5b3263c3.dip0.t-ipconnect.de ([91.50.99.195] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Rha-0004To-LZ for emacs-devel@gnu.org; Wed, 14 Dec 2022 08:21:38 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301387 Archived-At: Dear maintainers, I have the following patch for reftex.el fixing AUCTeX bug#59638. This issue was introduced with commit 1e8bb313ea: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index f815419ea4..126b3777f5 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el @@ -1004,10 +1004,13 @@ reftex-compile-variables reftex-section-levels)) ;; Calculate the regular expressions - (let* ( -; (wbol "\\(\\`\\|[\n\r]\\)[ \t]*") - (wbol "\\(^\\)%?[ \t]*") ; Need to keep the empty group because - ; match numbers are hard coded + (let* (;; (wbol "\\(\\`\\|[\n\r]\\)[ \t]*") + ;; Need to keep the empty group because match numbers are + ;; hard coded + (wbol (concat "\\(^\\)" + (when (string-suffix-p ".dtx" (buffer-file-name) t) + "%") + "[ \t]*")) (label-re (concat "\\(?:" (mapconcat #'identity reftex-label-regexps "\\|") "\\)")) --8<---------------cut here---------------end--------------->8--- Can you please tell me if this should go to master or emacs-29 branch? TIA. Best, Arash