branch: externals/auctex commit c5d1d02443095721e292e5b383b3db73fb2a1624 Author: Arash Esbati <arash.esb...@gmail.com> Commit: Arash Esbati <arash.esb...@gmail.com>
Append entry to `LaTeX-label-alist' for new "verbatim" floats * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Append an entry for parsed environments of "verbatim" type to `LaTeX-label-alist'. --- style/newfloat.el | 1 + 1 file changed, 1 insertion(+) diff --git a/style/newfloat.el b/style/newfloat.el index e84fad7..166eff5 100644 --- a/style/newfloat.el +++ b/style/newfloat.el @@ -119,6 +119,7 @@ If `caption.el' is loaded, add the new floating environment to (LaTeX-add-environments flt) (add-to-list (make-local-variable 'LaTeX-indent-environment-list) `(,flt current-indentation) t) + (add-to-list 'LaTeX-label-alist `(,flt . "lst:") t) (when (fboundp 'reftex-add-label-environments) (reftex-add-label-environments `((,flt ?l "lst:" "~\\ref{%s}" caption nil nil)))))