[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/latex.el,v
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/latex.el,v |
Date: |
Sun, 29 Mar 2009 19:56:51 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 09/03/29 19:56:51
Index: latex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/latex.el,v
retrieving revision 5.453
retrieving revision 5.454
diff -u -b -r5.453 -r5.454
--- latex.el 1 Mar 2009 16:32:16 -0000 5.453
+++ latex.el 29 Mar 2009 19:56:50 -0000 5.454
@@ -1825,6 +1825,18 @@
TeX-left-right-braces)))
(indent-according-to-mode)))))
+(defun TeX-arg-key-val (optional key-val-alist)
+ "Prompt for keys and values in KEY-VAL-ALIST.
+Insert the given value as a TeX macro argument. If OPTIONAL is
+non-nil, insert it as an optional argument. KEY-VAL-ALIST is an
+alist. The car of each element should be a string representing a
+key and the optional cdr should be a list with strings to be used
+as values for the key."
+ (let ((options (multi-prompt-key-value
+ (TeX-argument-prompt optional "Options" nil)
+ key-val-alist)))
+ (TeX-argument-insert options optional)))
+
;;; Verbatim constructs