From 0c65c9dfb3e1133a16dacd941b2a3cfb892e148a Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Thu, 6 Oct 2022 19:45:44 +0200 Subject: [PATCH] Pass correct environment name to `reftex-label' * lisp/textmodes/tex-mode.el (latex-block-body-alist): Pass "figure" to `reftex-label' when inserting a figure float. (bug#58329) --- lisp/textmodes/tex-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 6dc2865dd9a..bb8ea0d942c 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1557,7 +1557,7 @@ a skeleton (see `skeleton-insert').") '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table")) \n _) ("figure" nil > _ \n "\\caption{" > (skeleton-read "Caption: ") "}" > \n - '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table")))) + '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "figure")))) "Skeleton element to use for the body of particular environments. Every element of the list has the form (NAME . SKEL-ELEM) where NAME is the name of the environment and SKEL-ELEM is an element to use in -- 2.39.2