changeset 405:6b0d090840c1 dev

YaTeX-on-begin-end-p: regex group 1,3 have `begin' patterns, 2,4 for `end'
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 18 Jan 2015 22:24:41 +0900
parents ed57b7749c2a
children acfa7d11b5c3
files yatex.el yatexprc.el
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/yatex.el	Sun Jan 18 22:10:33 2015 +0900
+++ b/yatex.el	Sun Jan 18 22:24:41 2015 +0900
@@ -1,6 +1,6 @@
 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
 ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Fri Jan 16 19:51:35 2015 on firestorm
+;;; Last modified Sun Jan 18 22:22:42 2015 on firestorm
 ;;; $Id$
 ;;; The latest version of this software is always available at;
 ;;; http://www.yatex.org/
@@ -2145,7 +2145,7 @@
        (concat "\\(" YaTeX-struct-name-regexp "\\)") "" "" "")
       "\\|\\("
       YaTeX-ec-regexp  ;;"[][()]\\)"
-      "[][]\\)"
+      "\\[\\|\\]\\)"
       )
      (point-end-of-line) t)))
 
--- a/yatexprc.el	Sun Jan 18 22:10:33 2015 +0900
+++ b/yatexprc.el	Sun Jan 18 22:24:41 2015 +0900
@@ -1,7 +1,7 @@
 ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*-
 ;;; 
 ;;; (c)1993-2015 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Sun Jan 18 21:50:18 2015 on firestorm
+;;; Last modified Sun Jan 18 22:22:44 2015 on firestorm
 ;;; $Id$
 
 ;;; Code:
@@ -688,7 +688,7 @@
 	      (cancel-timer YaTeX-typeset-environment-timer)
 	      (setq YaTeX-typeset-environment-timer nil)))
 	(if (YaTeX-on-begin-end-p)
-	    (if (match-beginning 1) ;on beginning
+	    (if (or (match-beginning 1) (match-beginning 3)) ;on beginning
 		(goto-char (match-end 0))
 	      (goto-char (match-beginning 0))))
 	(YaTeX-typeset-environment))))

yatex.org