branch: externals/auctex
commit 85dd4fe521fab8d8c37c59afb1ea22fa1b162881
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Delete \Ref and \labelformat from varioref.el
    
    * style/varioref.el ("varioref"): Delete \Ref and \labelformat
    from style hook and fontification support.
---
 style/varioref.el | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/style/varioref.el b/style/varioref.el
index aeaaee0..d5e7e0d 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -53,9 +53,6 @@
     '("vrefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
     '("vpagerefrange*" [ "Same page text" ] TeX-arg-ref TeX-arg-ref)
 
-    '("labelformat" TeX-arg-counter t)
-
-    '("Ref" TeX-arg-ref)
     '("Vref" TeX-arg-ref)
     '("Vref*" TeX-arg-ref)
 
@@ -69,11 +66,12 @@
 
    ;; Install completion for labels.  Only offer completion for
    ;; commands that take only one reference as an argument
+   ;; FIXME: The first 3 entries can be reduced to
+   ;; ("\\[Vv]ref\*?{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")  ???
    (setq TeX-complete-list
         (append
          '(("\\[Vv]ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
            ("\\vref\*?{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
-           ("\\Ref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
            ("\\vref\*{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
            ("\\fullref{\([^{}
\%,]*\)" 1 LaTeX-label-list "}")
            ("\\vpageref\*?\(\[[^]]*\]\)*{\([^{}
\%,]*\)"
@@ -88,12 +86,9 @@
                                ("vpageref"      "*[[{")
                                ("vrefrange"     "*[{{")
                                ("vpagerefrange" "*[{{")
-                               ("Ref"           "{")
                                ("Vref"          "*{")
                                ("fullref"       "{"))
-                             'reference)
-     (font-latex-add-keywords '(("labelformat"   "{{"))
-                             'function))
+                             'reference))
 
    ;; Activate RefTeX reference style.
    (and LaTeX-reftex-ref-style-auto-activate

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to