[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: |
Mon, 28 Jan 2013 08:35:45 +0000 |
CVSROOT: /sources/auctex
Module name: auctex
Changes by: Tassilo Horn <tsdh> 13/01/28 08:35:44
Index: latex.el
===================================================================
RCS file: /sources/auctex/auctex/latex.el,v
retrieving revision 5.481
retrieving revision 5.482
diff -u -b -r5.481 -r5.482
--- latex.el 17 Jan 2013 07:20:42 -0000 5.481
+++ latex.el 28 Jan 2013 08:35:44 -0000 5.482
@@ -48,8 +48,8 @@
:type 'string)
(defcustom LaTeX-default-options nil
- "Default options to documentstyle.
-A list of strings."
+ "Default options to documentclass.
+A comma-seperated list of strings."
:group 'LaTeX-environment
:type '(repeat (string :format "%v")))
@@ -1215,6 +1215,10 @@
'(("\\\\newlength *{?\\\\\\([A-Za-z]+\\)}?" 1 LaTeX-auto-length))
"List of regular expressions matching LaTeX lengths only.")
+(defvar LaTeX-auto-savebox-regexp-list
+ '(("\\\\newsavebox *{?\\\\\\([A-Za-z]+\\)}?" 1 LaTeX-auto-savebox))
+ "List of regular expressions matching LaTeX saveboxes only.")
+
(defvar LaTeX-auto-regexp-list
(append
(let ((token TeX-token-char))
@@ -1251,7 +1255,8 @@
LaTeX-auto-minimal-regexp-list
LaTeX-auto-pagestyle-regexp-list
LaTeX-auto-counter-regexp-list
- LaTeX-auto-length-regexp-list)
+ LaTeX-auto-length-regexp-list
+ LaTeX-auto-savebox-regexp-list)
"List of regular expression matching common LaTeX macro definitions.")
(defun LaTeX-split-bibs (match)
@@ -1441,6 +1446,7 @@
(TeX-auto-add-type "pagestyle" "LaTeX")
(TeX-auto-add-type "counter" "LaTeX")
(TeX-auto-add-type "length" "LaTeX")
+(TeX-auto-add-type "savebox" "LaTeX" "saveboxes")
(fset 'LaTeX-add-bibliographies-auto
(symbol-function 'LaTeX-add-bibliographies))
@@ -1608,18 +1614,19 @@
(LaTeX-add-counters counter))
(TeX-argument-insert counter optional)))
-;; Why is DEFINITION unused?
(defun TeX-arg-savebox (optional &optional prompt definition)
"Prompt for a LaTeX savebox.
If OPTIONAL is non-nil, insert the resulting value as an optional
argument, otherwise as a mandatory one. Use PROMPT as the prompt
-string. DEFINITION is unused."
- ;; Completion not implemented yet.
- (TeX-argument-insert
- (read-string (TeX-argument-prompt optional prompt
- (concat "Savebox: " TeX-esc)
- t))
- optional TeX-esc))
+string. If definition is non-nil, the savebox is added to the
+list of defined saveboxes."
+ (let ((savebox (completing-read (TeX-argument-prompt optional prompt
+ (concat "Savebox: "
+ TeX-esc) t)
+ (LaTeX-savebox-list))))
+ (if (and definition (not (zerop (length savebox))))
+ (LaTeX-add-saveboxes savebox))
+ (TeX-argument-insert savebox optional TeX-esc)))
(defun TeX-arg-length (optional &optional prompt initial-input definition)
"Prompt for a LaTeX length.
@@ -5512,7 +5519,8 @@
"hfil" "hfill" "vfil" "vfill" "hrulefill" "dotfill"
"indent" "noindent" "today"
"appendix"
- "dots")
+ "dots"
+ "makeatletter" "makeatother" "jobname")
(when (string-equal LaTeX-version "2e")
(LaTeX-add-environments
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/10
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/13
- [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 <=
- [AUCTeX-diffs] Changes to auctex/latex.el,v, Tassilo Horn, 2013/01/29