emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 2182b6f 30/95: Append "lstlisting" to `LaTeX-lab


From: Tassilo Horn
Subject: [elpa] externals/auctex 2182b6f 30/95: Append "lstlisting" to `LaTeX-label-alist'
Date: Sun, 16 Apr 2017 01:26:49 -0400 (EDT)

branch: externals/auctex
commit 2182b6fa6e01bc5054edee3999274f19d6d9552a
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Append "lstlisting" to `LaTeX-label-alist'
    
    * style/listings.el ("listings"): Append "lstlisting" to
    `LaTeX-label-alist'.
    (LaTeX-listings-auto-cleanup): Use `LaTeX-listing-label' as a
    symbol during clean up.
---
 style/listings.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/style/listings.el b/style/listings.el
index e36af7a..074428b 100644
--- a/style/listings.el
+++ b/style/listings.el
@@ -320,7 +320,7 @@ with user-defined values via the \"lstdefinestyle\" macro."
             (LaTeX-add-environments (list env))))
       (add-to-list 'LaTeX-indent-environment-list `(,env current-indentation) 
t)
       (add-to-list 'LaTeX-verbatim-environments-local env t)
-      (add-to-list 'LaTeX-label-alist (cons env LaTeX-listing-label) t)
+      (add-to-list 'LaTeX-label-alist `(,env . LaTeX-listing-label) t)
       ;; Add new env to parser for labels in opt. argument:
       (TeX-auto-add-regexp `(,(concat "\\\\begin{" env "}"
                                      LaTeX-listings-key-val-label-extract)
@@ -389,6 +389,9 @@ with user-defined values via the \"lstdefinestyle\" macro."
       [TeX-arg-key-val LaTeX-listings-key-val-options-local]
       (LaTeX-env-label-as-keyval "caption")))
 
+   ;; Append "lstlisting" to `LaTeX-label-alist':
+   (add-to-list 'LaTeX-label-alist '("lstlisting" . LaTeX-listing-label) t)
+
    ;; Filling
    (add-to-list (make-local-variable 'LaTeX-indent-environment-list)
                '("lstlisting" current-indentation) t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]