auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Patch for tex.el and amsmath.el


From: Masayuki Ataka
Subject: [AUCTeX-devel] Patch for tex.el and amsmath.el
Date: Sun, 11 Jun 2006 22:35:23 +0900 (JST)

Hi, 

Ikumi-San sent me a patch for tex.el and amsmath.el.
It seems good to me.  If no objection, I'll commit this.

Comments are welcome.

---
email: address@hidden
Name:: Masayuki Ataka // (Japan)

ChangeLog:

        * tex.el (TeX-parse-arguments): Makes to work with
        proper value of TeX-insert-macro-default-style.
        (TeX-insert-braces): Place braces with right direction with
        active region.

        * amsmath.el: Add (require 'latex) to suppress compiler warnings.

--- tex.el-11.82        Fri Dec  9 04:37:16 2005
+++ tex.el      Wed Feb 22 01:24:49 2006
@@ -2003,9 +2003,9 @@
        skip-opt)
     ;; Maybe get rid of all optional arguments.  See `TeX-insert-macro' for
     ;; more comments.  See `TeX-insert-macro-default-style'.
-    (when (or (and (eq TeX-insert-macro-default-style 'show-optional)
+    (when (or (and (eq TeX-insert-macro-default-style 'show-optional-args)
                   (equal current-prefix-arg '(4)))
-             (and (eq TeX-insert-macro-default-style 'mandatory-only)
+             (and (eq TeX-insert-macro-default-style 'mandatory-args-only)
                   (null (equal current-prefix-arg '(4)))))
       (while (vectorp (car args))
        (setq args (cdr args))))
@@ -4571,6 +4571,8 @@
   (interactive "P")
   (if (TeX-active-mark)
       (progn
+       (if (< (point) (mark))
+           (exchange-point-and-mark))
        (insert TeX-grcl)
        (save-excursion
          (goto-char (mark))
--- style/amsmath.el-11.82      Sun Oct 23 19:13:01 2005
+++ style/amsmath.el    Wed Feb 22 00:46:44 2006
@@ -9,6 +9,8 @@
 
 ;;; Code:
 
+(require 'latex)
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]