diff -u /home/mads/coding/projects/auctex/style/listings.el.\~1.14.\~ /home/mads/coding/projects/auctex/style/listings.el --- /home/mads/coding/projects/auctex/style/listings.el.~1.14.~ 2012-02-11 11:57:20.000000000 +0100 +++ /home/mads/coding/projects/auctex/style/listings.el 2012-12-28 19:52:07.000000000 +0100 @@ -33,8 +33,7 @@ ;;; Code: ;; The following are options taken from chapter 4 of the listings -;; manual (2006/05/08 Version 1.3c). Experimental options described -;; in chapter 5 are not included. +;; manual (2007/02/22 Version 1.4). (defvar LaTeX-listings-key-val-options '(;; Space and placement ("float" ("t" "b" "p" "h")) ; Support [*] as an optional prefix and that @@ -102,6 +101,7 @@ ("caption") ; Insert braces? ("label") ("nolol" ("true" "false")) + ("numberbychapter" ("true" "false")) ("captionpos" ("t" "b")) ; Can be a subset of tb. ("abovecaptionskip") ("belowcaptionskip") @@ -141,8 +141,9 @@ ("deleteindex") ("indexstyle") ;; Column alignment - ("columns" ("fixed" "flexible" "fullflexible")) ; Also supports an optional - ; argument with {c,l,r}. + ("columns" ("fixed" "flexible" "fullflexible" "spaceflexible")) ; + ; Also supports an optional + ; argument with {c,l,r}. ("flexiblecolumns" ("true" "false")) ("keepspaces" ("true" "false")) ("basewidth") @@ -185,7 +186,35 @@ ("morekeywordcomment") ("deletekeywordcomment") ("keywordcommentsemicolon") - ("podcomment" ("true" "false"))) + ("podcomment" ("true" "false")) + ;; The following are all options from chapter 5, which are + ;; experimental + ;; Export of identifiers + ("procnamekeys") + ("moreprocnamekeys") + ("deleteprocnamekeys") + ("procnamestyle") + ("indexprocnames" ("true" "false")) + ;; Hyperlink references + ("hyperref") + ("morehyperref") + ("deletehyperref") + ("hyperanchor") + ("hyperlink") + ;; Literate programming + ("literate") ;; three arguments: replace,replacement text,length + ;; LGrind definitions + ("lgrindef") + ;; Arbitrary linerange markers + ("rangebeginprefix") + ("rangebeginsuffix") + ("rangeendprefix") + ("rangeendsuffix") + ("rangeprefix") + ("rangesuffix") + ("includerangemarker" ("true" "false")) + ;; Multicolumn Listing + ("multicolumn")) "Key=value options for listings macros and environments.") (TeX-add-style-hook @@ -202,7 +231,18 @@ "lstlistoflistings" '("lstnewenvironment" "Name" ["Number or arguments"] ["Default argument"] "Starting code" "Ending code") - '("lstset" (TeX-arg-key-val LaTeX-listings-key-val-options))) + '("lstset" (TeX-arg-key-val LaTeX-listings-key-val-options)) + '("lstloadlanguages" t) + ;; 4.17 Short Inline Listing Commands + '("lstMakeShortInline" [ "Options" ] "Character") + '("lstDeleteShortLine" "Character") + + '("") + "lstgrinddeffile" "lstaspectfiles" "lstlanguagefiles" + "lstlistingname" "lstlistlistingname" "" + + ) + ;; New environments (LaTeX-add-environments '("lstlisting" LaTeX-env-args @@ -237,7 +277,10 @@ (font-lock-set-defaults)))) (defvar LaTeX-listings-package-options '("draft" "final" "savemem" - "noaspects") + "noaspects" + ;; procnames is mentioned in + ;; Section 5.2 + "procnames") "Package options for the listings package.") ;;; listings.el ends here Diff finished. Fri Dec 28 19:59:41 2012