auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to reftex/lisp/reftex-ref.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to reftex/lisp/reftex-ref.el,v
Date: Sun, 17 Feb 2008 17:18:56 +0000

CVSROOT:        /sources/auctex
Module name:    reftex
Changes by:     Ralf Angeli <angeli>    08/02/17 17:18:56

Index: reftex-ref.el
===================================================================
RCS file: /sources/auctex/reftex/lisp/reftex-ref.el,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- reftex-ref.el       27 Jan 2008 16:50:32 -0000      1.34
+++ reftex-ref.el       17 Feb 2008 17:18:56 -0000      1.35
@@ -490,7 +490,7 @@
         (if sep1 (insert sep1))
         (insert
          (if reftex-format-ref-function
-             (funcall reftex-format-ref-function label form)
+             (funcall reftex-format-ref-function label form refstyle)
            (format form label label)))
         ;; take out the initial ~ for good
         (and (= ?~ (string-to-char form))
@@ -817,8 +817,9 @@
               (let ((refstyle ,macro))
                 (reftex-reference)))))))
 
-(defun reftex-format-special (label fmt)
-  "Apply selected reference style to format FMT and add LABEL."
+(defun reftex-format-special (label fmt refstyle)
+  "Apply selected reference style to format FMT and add LABEL.
+Replace any occurrences of \"\\ref\" with REFSTYLE."
   ;; Replace instances of \ref in `fmt' with the special reference
   ;; style selected by the user.
   (while (string-match "\\(\\\\ref\\)[ \t]*{" fmt)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]