branch: externals/auctex
commit 517dd1ae1f357772e77568884cf9a6d027de6138
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Don't change RefTeX's 'reference-format' for ?l
* style/fancyvrb.el (LaTeX-fancyvrb-arg-define-environment)
("fancyvrb"): Don't change RefTeX's 'reference-format' for the
typekey ?l assigned to `LaTeX-listing-label' unconditionally from
\ref to \pageref.
---
style/fancyvrb.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/style/fancyvrb.el b/style/fancyvrb.el
index 77c7d1a475..ddf5c6b543 100644
--- a/style/fancyvrb.el
+++ b/style/fancyvrb.el
@@ -1,6 +1,6 @@
;;; fancyvrb.el --- AUCTeX style for `fancyvrb.sty' version 4.5. -*-
lexical-binding: t; -*-
-;; Copyright (C) 2013, 2014, 2016-2025 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2014, 2016-2026 Free Software Foundation, Inc.
;; Maintainer: [email protected]
;; Author: Mosè Giordano <[email protected]>
@@ -470,13 +470,13 @@ update only various AUCTeX variables for verbatim
environments."
(boundp 'reftex-label-regexps))
(reftex-add-label-environments
`((,env
- ?l ,LaTeX-listing-label "~\\pageref{%s}"
+ ?l ,LaTeX-listing-label nil
LaTeX-fancyvrb-reftex-label-context-function
(regexp "[Ll]isting" "[Vv]erbatim"
"[Cc]ode" "Quell\\(code\\|text\\)"))
(,(concat env "*")
- ?l ,LaTeX-listing-label "~\\pageref{%s}"
+ ?l ,LaTeX-listing-label nil
LaTeX-fancyvrb-reftex-label-context-function
(regexp "[Ll]isting" "[Vv]erbatim"
"[Cc]ode" "Quell\\(code\\|text\\)"))))
@@ -781,7 +781,7 @@ a list of strings."
(boundp 'reftex-label-regexps))
(dolist (env envs)
(reftex-add-label-environments
- `((,env ?l ,LaTeX-listing-label "~\\pageref{%s}"
+ `((,env ?l ,LaTeX-listing-label nil
LaTeX-fancyvrb-reftex-label-context-function
(regexp "[Ll]isting" "[Vv]erbatim"
"[Cc]ode" "Quell\\(code\\|text\\)")))))