aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArash Esbati2022-10-06 19:45:44 +0200
committerArash Esbati2022-10-06 19:45:44 +0200
commit0c65c9dfb3e1133a16dacd941b2a3cfb892e148a (patch)
tree0bd1f3c5aaba5f43ca5f8ef6797f542155908a33
parentd188013737e352289cf60d58d747ead5407ef042 (diff)
downloademacs-0c65c9dfb3e1133a16dacd941b2a3cfb892e148a.tar.gz
emacs-0c65c9dfb3e1133a16dacd941b2a3cfb892e148a.zip
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)
-rw-r--r--lisp/textmodes/tex-mode.el2
1 files changed, 1 insertions, 1 deletions
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').")
1557 '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table")) 1557 '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table"))
1558 \n _) 1558 \n _)
1559 ("figure" nil > _ \n "\\caption{" > (skeleton-read "Caption: ") "}" > \n 1559 ("figure" nil > _ \n "\\caption{" > (skeleton-read "Caption: ") "}" > \n
1560 '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "table")))) 1560 '(if (and (boundp 'reftex-mode) reftex-mode) (reftex-label "figure"))))
1561 "Skeleton element to use for the body of particular environments. 1561 "Skeleton element to use for the body of particular environments.
1562Every element of the list has the form (NAME . SKEL-ELEM) where NAME is 1562Every element of the list has the form (NAME . SKEL-ELEM) where NAME is
1563the name of the environment and SKEL-ELEM is an element to use in 1563the name of the environment and SKEL-ELEM is an element to use in