Hi all,

Now I'm sending four more patches which involves more or less the actual
contents, not just the document or comment, of AUCTeX.  Comments and
suggestions are welcome.

Regards,
Ikumi Keita

>From ik...@ikumi.que.jp Fri Apr 15 23:22:23 2016
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [PATCH] Temporarily bind `TeX-insert-macro-default-style' to
 'show-optional-args'
X-Mercurial-Node: d99e326f9c739438e163bc71be8f62c3949ebdb1
X-Mercurial-Series-Index: 1
X-Mercurial-Series-Total: 1
Message-Id: <d99e326f9c739438e163.1460730...@localhost.my.domain>
X-Mercurial-Series-Id: <d99e326f9c739438e163.1460730...@localhost.my.domain>
User-Agent: Mercurial-patchbomb/3.7.3
Date: Fri, 15 Apr 2016 23:22:23 +0900
From: Ikumi Keita <ik...@ikumi.que.jp>
To: dummy

* latex.el (LaTeX-item-argument): Temporarily bind
`TeX-insert-macro-default-style' to 'show-optional-args'.
This is necessary in description environment if the user customize the
option to `mandatory-args-only'.

diff --git a/latex.el b/latex.el
--- a/latex.el
+++ b/latex.el
@@ -1259,7 +1259,8 @@
 
 (defun LaTeX-item-argument ()
   "Insert a new item with an optional argument."
-  (let ((TeX-arg-item-label-p t))
+  (let ((TeX-arg-item-label-p t)
+	(TeX-insert-macro-default-style 'show-optional-args))
     (TeX-insert-macro "item")))
 
 (defun LaTeX-item-bib ()


>From ik...@ikumi.que.jp Fri Apr 15 23:09:18 2016
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [PATCH] Use `match-string-no-properties'
X-Mercurial-Node: d3ed0c3d6bb8c7c04e0d35e4d94bf85c33cd9caa
X-Mercurial-Series-Index: 1
X-Mercurial-Series-Total: 1
Message-Id: <d3ed0c3d6bb8c7c04e0d.1460729...@localhost.my.domain>
X-Mercurial-Series-Id: <d3ed0c3d6bb8c7c04e0d.1460729...@localhost.my.domain>
User-Agent: Mercurial-patchbomb/3.7.3
Date: Fri, 15 Apr 2016 23:09:17 +0900
From: Ikumi Keita <ik...@ikumi.que.jp>
To: dummy

* texmathp.el (texmathp, texmathp-match-environment): For better
consistency with other parts of the file, change `match-string' to
`no-properties' variant.

diff --git a/texmathp.el b/texmathp.el
--- a/texmathp.el
+++ b/texmathp.el
@@ -287,7 +287,7 @@
 	  (goto-char (cdr match))
 	  (while (re-search-forward texmathp-toggle-regexp pos t)
 	    (if (setq math-on (not math-on))
-		(setq sw-match (cons (match-string 2) (match-beginning 2)))
+		(setq sw-match (cons (match-string-no-properties 2) (match-beginning 2)))
 	      (setq sw-match nil)))
 	  (and math-on sw-match (setq match sw-match))))
 
@@ -336,7 +336,7 @@
 	    (when (eq orig-comment-flag current-comment-flag)
 	      (setq env (buffer-substring-no-properties
 			 (match-beginning 2) (match-end 2)))
-	      (cond ((string= (match-string 1) "end")
+	      (cond ((string= (match-string-no-properties 1) "end")
 		     (setq end-list (cons env end-list)))
 		    ((equal env (car end-list))
 		     (setq end-list (cdr end-list)))


>From ik...@ikumi.que.jp Fri Apr 15 23:09:45 2016
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [PATCH] Use `deactivate-input-method' if defined
X-Mercurial-Node: 6f3e13b670d1d02cf5fb4f6addca685a37a80ce1
X-Mercurial-Series-Index: 1
X-Mercurial-Series-Total: 1
Message-Id: <6f3e13b670d1d02cf5fb.1460729...@localhost.my.domain>
X-Mercurial-Series-Id: <6f3e13b670d1d02cf5fb.1460729...@localhost.my.domain>
User-Agent: Mercurial-patchbomb/3.7.3
Date: Fri, 15 Apr 2016 23:09:45 +0900
From: Ikumi Keita <ik...@ikumi.que.jp>
To: dummy

* tex.el (TeX-math-input-method-off): Use `deactivate-input-method'
instead of obsolete function `inactivate-input-method' when possible.

diff --git a/tex.el b/tex.el
--- a/tex.el
+++ b/tex.el
@@ -5950,7 +5950,10 @@
        (texmathp)
        (boundp 'current-input-method) current-input-method
        (string-match TeX-math-input-method-off-regexp current-input-method)
-       (inactivate-input-method)))
+       ;; inactivate-input-method is obsolete since emacs 24.3.
+       (if (fboundp 'deactivate-input-method)
+	   (deactivate-input-method)
+	 (inactivate-input-method))))
 
 ;;; Simple Commands
 


>From ik...@ikumi.que.jp Fri Apr 15 23:10:11 2016
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [PATCH] Use customize option `TeX-region' instead of "_region_"
X-Mercurial-Node: 438e412450b5f16bd3cf390ce69589b828fe75b2
X-Mercurial-Series-Index: 1
X-Mercurial-Series-Total: 1
Message-Id: <438e412450b5f16bd3cf.1460729...@localhost.my.domain>
X-Mercurial-Series-Id: <438e412450b5f16bd3cf.1460729...@localhost.my.domain>
User-Agent: Mercurial-patchbomb/3.7.3
Date: Fri, 15 Apr 2016 23:10:10 +0900
From: Ikumi Keita <ik...@ikumi.que.jp>
To: dummy

* tex-buf.el (TeX-output-revert-buffer): Use customize option
`TeX-region' instead of string literal "_region_".

diff --git a/tex-buf.el b/tex-buf.el
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -3677,7 +3677,7 @@
       (let ((name (match-string 1))
             (file (match-string 2)))
         (with-current-buffer TeX-command-buffer
-          (TeX-command name (if (string-match "_region_" file)
+          (TeX-command name (if (string-match TeX-region file)
                                 #'TeX-region-file
                               #'TeX-master-file))))
     (error "Unable to find what command to run")))


_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to