# HG changeset patch # User HIROSE Yuuji # Date 1421587481 -32400 # Node ID 6b0d090840c108a8fa858eb60118764dfc7e3042 # Parent ed57b7749c2ab04739403930c62c9a6736bcaa76 YaTeX-on-begin-end-p: regex group 1,3 have `begin' patterns, 2,4 for `end' diff -r ed57b7749c2a -r 6b0d090840c1 yatex.el --- 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))) diff -r ed57b7749c2a -r 6b0d090840c1 yatexprc.el --- 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))))