yatex

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 diff
     1.1 --- a/yatex.el	Sun Jan 18 22:10:33 2015 +0900
     1.2 +++ b/yatex.el	Sun Jan 18 22:24:41 2015 +0900
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
     1.5  ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Fri Jan 16 19:51:35 2015 on firestorm
     1.7 +;;; Last modified Sun Jan 18 22:22:42 2015 on firestorm
     1.8  ;;; $Id$
     1.9  ;;; The latest version of this software is always available at;
    1.10  ;;; http://www.yatex.org/
    1.11 @@ -2145,7 +2145,7 @@
    1.12         (concat "\\(" YaTeX-struct-name-regexp "\\)") "" "" "")
    1.13        "\\|\\("
    1.14        YaTeX-ec-regexp  ;;"[][()]\\)"
    1.15 -      "[][]\\)"
    1.16 +      "\\[\\|\\]\\)"
    1.17        )
    1.18       (point-end-of-line) t)))
    1.19  
     2.1 --- a/yatexprc.el	Sun Jan 18 22:10:33 2015 +0900
     2.2 +++ b/yatexprc.el	Sun Jan 18 22:24:41 2015 +0900
     2.3 @@ -1,7 +1,7 @@
     2.4  ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*-
     2.5  ;;; 
     2.6  ;;; (c)1993-2015 by HIROSE Yuuji.[yuuji@yatex.org]
     2.7 -;;; Last modified Sun Jan 18 21:50:18 2015 on firestorm
     2.8 +;;; Last modified Sun Jan 18 22:22:44 2015 on firestorm
     2.9  ;;; $Id$
    2.10  
    2.11  ;;; Code:
    2.12 @@ -688,7 +688,7 @@
    2.13  	      (cancel-timer YaTeX-typeset-environment-timer)
    2.14  	      (setq YaTeX-typeset-environment-timer nil)))
    2.15  	(if (YaTeX-on-begin-end-p)
    2.16 -	    (if (match-beginning 1) ;on beginning
    2.17 +	    (if (or (match-beginning 1) (match-beginning 3)) ;on beginning
    2.18  		(goto-char (match-end 0))
    2.19  	      (goto-char (match-beginning 0))))
    2.20  	(YaTeX-typeset-environment))))