diff options
author | Arash Esbati <arash@gnu.org> | 2022-10-06 19:45:44 +0200 |
---|---|---|
committer | Arash Esbati <arash@gnu.org> | 2022-10-06 19:45:44 +0200 |
commit | 0c65c9dfb3e1133a16dacd941b2a3cfb892e148a (patch) | |
tree | 0bd1f3c5aaba5f43ca5f8ef6797f542155908a33 /lisp/textmodes | |
parent | d188013737e352289cf60d58d747ead5407ef042 (diff) | |
download | emacs-0c65c9dfb3e1133a16dacd941b2a3cfb892e148a.tar.gz emacs-0c65c9dfb3e1133a16dacd941b2a3cfb892e148a.tar.bz2 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)
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 2 |
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').") '(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 |