Subject: Changes to auctex/tex.el - msg#00012
List: emacs.auctex.diffs
Index: auctex/tex.el
diff -u auctex/tex.el:5.550 auctex/tex.el:5.551
--- auctex/tex.el:5.550 Mon Dec 5 10:50:52 2005
+++ auctex/tex.el Wed Dec 7 12:15:19 2005
@@ -1870,6 +1870,8 @@
"String used as a closing brace for argument insertion.
The variable will be temporarily let-bound with the necessary value.")
+(defvar TeX-macro-history nil)
+
(defun TeX-insert-macro (symbol)
"Insert TeX macro SYMBOL with completion.
@@ -1885,7 +1887,8 @@
TeX-default-macro
"): "
TeX-esc)
- (TeX-symbol-list))))
+ (TeX-symbol-list) nil nil nil
+ 'TeX-macro-history)))
(cond ((string-equal symbol "")
(setq symbol TeX-default-macro))
((interactive-p)
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Changes to auctex/ChangeLog
Index: auctex/ChangeLog
diff -u auctex/ChangeLog:5.1259 auctex/ChangeLog:5.1260
--- auctex/ChangeLog:5.1259 Mon Dec 5 10:51:38 2005
+++ auctex/ChangeLog Wed Dec 7 12:15:05 2005
@@ -1,3 +1,8 @@
+2005-12-07 Ralf Angeli <angeli@xxxxxxxxxxxxx>
+
+ * tex.el (TeX-macro-history): New variable.
+ (TeX-insert-macro): Use it.
+
2005-12-05 Ralf Angeli <angeli@xxxxxxxxxxxxx>
* tex-info.el (TeX-texinfo-mode): Do not add braces around
Next Message by Date:
click to view message preview
Changes to auctex/ChangeLog
Index: auctex/ChangeLog
diff -u auctex/ChangeLog:5.1260 auctex/ChangeLog:5.1261
--- auctex/ChangeLog:5.1260 Wed Dec 7 12:15:05 2005
+++ auctex/ChangeLog Thu Dec 8 19:37:16 2005
@@ -1,3 +1,8 @@
+2005-12-08 Reiner Steib <Reiner.Steib@xxxxxx>
+
+ * tex.el (TeX-completing-read-multiple): Mention the availability
+ of crm.el in recent XEmacs packages.
+
2005-12-07 Ralf Angeli <angeli@xxxxxxxxxxxxx>
* tex.el (TeX-macro-history): New variable.
Previous Message by Thread:
click to view message preview
Changes to auctex/tex.el
Index: auctex/tex.el
diff -u auctex/tex.el:5.549 auctex/tex.el:5.550
--- auctex/tex.el:5.549 Wed Nov 30 09:31:42 2005
+++ auctex/tex.el Mon Dec 5 10:50:52 2005
@@ -2117,6 +2117,20 @@
(when (memq symbol list)
(eval form)))
+(defun TeX-arg-free (optional &rest args)
+ "Parse its arguments but use no braces when they are inserted."
+ (let ((TeX-arg-opening-brace "")
+ (TeX-arg-closing-brace ""))
+ (if (equal (length args) 1)
+ (TeX-parse-argument optional (car args))
+ (TeX-parse-argument optional args))))
+
+(defun TeX-arg-literal (optional &rest args)
+ "Insert its arguments ARGS into the buffer.
+Used for specifying extra syntax for a macro."
+ ;; FIXME: What is the purpose of OPTIONAL here? -- rs
+ (apply 'insert args))
+
;;; Font Locking
@@ -3175,12 +3189,6 @@
(skip-chars-backward " \t\n")
(bobp)))
-(defun TeX-arg-literal (optional &rest args)
- "Insert its arguments ARGS into the buffer.
-Used for specifying extra syntax for a macro."
- ;; FIXME: What is the purpose of OPTIONAL here? -- rs
- (apply 'insert args))
-
(defalias 'TeX-run-mode-hooks
(if (fboundp 'run-mode-hooks) 'run-mode-hooks 'run-hooks))
@@ -4363,8 +4371,9 @@
(buffer-substring (point)
(progn (end-of-line) (point)))))))
;; Math mode was not entered with dollar - we cannot finish it with one.
- (error "Math mode because of `%s'. Use `C-q $' to force a dollar"
- (car texmathp-why))))
+ (message "Math mode started with `%s' cannot be closed with dollar"
+ (car texmathp-why))
+ (insert "$")))
(t
;; Just somewhere in the text.
(insert "$")))
Next Message by Thread:
click to view message preview
Changes to auctex/tex.el
Index: auctex/tex.el
diff -u auctex/tex.el:5.551 auctex/tex.el:5.552
--- auctex/tex.el:5.551 Wed Dec 7 12:15:19 2005
+++ auctex/tex.el Thu Dec 8 19:37:16 2005
@@ -698,8 +698,10 @@
(defun TeX-completing-read-multiple
(prompt table &optional predicate require-match initial-input
hist def inherit-input-method)
- "Poor mans implementation of Emacs' `completing-read-multiple' for XEmacs."
- (multi-prompt "," nil prompt table predicate require-match initial-input
hist)))
+ "Poor mans implementation of Emacs' `completing-read-multiple' for XEmacs.
+The XEmacs package edit-utils-2.32 includes `crm.el'."
+ (multi-prompt "," nil prompt table predicate require-match initial-input
+ hist)))
;;; Special support for GNU Emacs