[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)
- [elpa] externals/auctex 586cbd8 28/95: * .gitignore: Ignore only preview.el in top directory., (continued)
- [elpa] externals/auctex 586cbd8 28/95: * .gitignore: Ignore only preview.el in top directory., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex cf43d7d 53/95: ; Add some full stops at the end of sentences of the manual, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex de5e40b 37/95: Fix setting of coding system for Japanese TeX, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7e7e55e 40/95: Add new style/sourcecodepro.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 991b582 50/95: Detect \& in tabular cells when filling, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4fcee32 68/95: Use the variable `LaTeX-listing-label', Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 77974e6 71/95: * style/minted.el ("minted"): Add key=val query for \mint and \mintinline., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 43b07d9 70/95: Use `TeX-line-number-at-pos' further for older emacsen, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 9e7f21e 69/95: Use compatibility function `TeX-line-number-at-pos' for older emacsen, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c360b9a 76/95: Adapt fontification for \lstinline, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 2182b6f 30/95: Append "lstlisting" to `LaTeX-label-alist',
Tassilo Horn <=
- [elpa] externals/auctex 337ce76 33/95: Add new keys for package version 4.00, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6bb49cc 39/95: * style/subfiles.el (LaTeX-subfiles-class-options): New function., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4992f5a 46/95: Make customization to face specification to appear in, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex c97a654 48/95: * tex-ispell.el (TeX-ispell-skip-setcdr): Add entry for filecontents package., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 0dc770d 42/95: Prevent infinite loop in TeX-command-expand, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 841d4cb 45/95: Unify treatment of face argument over the relevant functions., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 72a6943 54/95: Add fallback for indentation when & is omitted, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 8fdc494 63/95: ; Provide fallback when no locale information is available, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 9d12a06 66/95: Use `TeX-replace-regexp-in-string' in style files, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a71a72d 74/95: Add support for Japanese font command, Tassilo Horn, 2017/04/16