branch: externals/auctex
commit c9e2845b643c377535acf04060761dedda82c3d1
Author: Tony Zorman <[email protected]>
Commit: Arash Esbati <[email protected]>

    ; Fix last change
    
    * tex-fold.el (TeX-fold-expand-spec): Fix reference to free
    variable.
---
 tex-fold.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex-fold.el b/tex-fold.el
index d4dacc1684..0952bccc77 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -747,7 +747,7 @@ Replace them with the respective macro argument."
            ;; If there is something to replace and the closing delimiter
            ;; matches the opening one…
            (if-let (((string-match "\\([[{<(]\\)\\([1-9]\\)\\([]}>)]\\)"
-                                   elt index))
+                                   spec index))
                     (open (string-to-char (match-string 1 spec)))
                     (num (string-to-number (match-string 2 spec)))
                     (close (string-to-char (match-string 3 spec)))


Reply via email to