[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/latex.el,v
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] Changes to auctex/latex.el,v |
Date: |
Sun, 13 Jan 2013 19:24:19 +0000 |
CVSROOT: /sources/auctex
Module name: auctex
Changes by: Tassilo Horn <tsdh> 13/01/13 19:24:11
Index: latex.el
===================================================================
RCS file: /sources/auctex/auctex/latex.el,v
retrieving revision 5.477
retrieving revision 5.478
diff -u -b -r5.477 -r5.478
--- latex.el 10 Jan 2013 09:29:33 -0000 5.477
+++ latex.el 13 Jan 2013 19:24:10 -0000 5.478
@@ -1,6 +1,6 @@
;;; latex.el --- Support for LaTeX documents.
-;; Copyright (C) 1991, 1993-1997, 1999, 2000, 2003-2012
+;; Copyright (C) 1991, 1993-1997, 1999, 2000, 2003-2013
;; Free Software Foundation, Inc.
;; Maintainer: address@hidden
@@ -1202,6 +1202,10 @@
1 TeX-auto-symbol))
"List of regular expressions matching macros in LaTeX classes and packages.")
+(defvar LaTeX-auto-pagestyle-regexp-list
+ '(("address@hidden([A-Za-z]+\\)" 1 LaTeX-auto-pagestyle))
+ "List of regular expression matching LaTeX pagestyle only.")
+
(defvar LaTeX-auto-regexp-list
(append
(let ((token TeX-token-char))
@@ -1235,7 +1239,8 @@
LaTeX-auto-class-regexp-list
LaTeX-auto-label-regexp-list
LaTeX-auto-index-regexp-list
- LaTeX-auto-minimal-regexp-list)
+ LaTeX-auto-minimal-regexp-list
+ LaTeX-auto-pagestyle-regexp-list)
"List of regular expression matching common LaTeX macro definitions.")
(defun LaTeX-split-bibs (match)
@@ -1422,6 +1427,7 @@
(TeX-auto-add-type "environment" "LaTeX")
(TeX-auto-add-type "bibliography" "LaTeX" "bibliographies")
(TeX-auto-add-type "index-entry" "LaTeX" "index-entries")
+(TeX-auto-add-type "pagestyle" "LaTeX")
(fset 'LaTeX-add-bibliographies-auto
(symbol-function 'LaTeX-add-bibliographies))
@@ -1912,13 +1918,6 @@
nil t)
optional))
-(defcustom LaTeX-pagestyle-list
- '(("plain") ("empty") ("headings") ("myheadings"))
- "A list of available pagestyles."
- :group 'LaTeX
- :type '(repeat (list (string))))
-(make-variable-buffer-local 'LaTeX-pagestyle-list)
-
(defun TeX-arg-pagestyle (optional &optional prompt)
"Prompt for a LaTeX pagestyle with completion.
If OPTIONAL is non-nil, insert the resulting value as an optional
@@ -1926,7 +1925,7 @@
string."
(TeX-argument-insert
(completing-read (TeX-argument-prompt optional prompt "Pagestyle")
- LaTeX-pagestyle-list)
+ (LaTeX-pagestyle-list))
optional))
(defcustom LaTeX-default-verb-delimiter ?|
@@ -5262,6 +5261,9 @@
'("thebibliography" LaTeX-env-bib)
'("theindex" LaTeX-env-item))
+ ;; `latex.ltx' defines `plain' and `empty' pagestyles
+ (LaTeX-add-pagestyles "plain" "empty")
+
(TeX-add-symbols
'("addtocounter" TeX-arg-counter "Value")
'("alph" TeX-arg-counter)
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/10
- [AUCTeX-diffs] Changes to auctex/latex.el,v,
Tassilo Horn <=
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/14
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/15
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/17
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/28
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/29