diff --git a/yatex.el b/yatex.el index 3c1a1ad..20d216d 100644 --- a/yatex.el +++ b/yatex.el @@ -2,7 +2,7 @@ ;;; Yet Another tex-mode for emacs - //�쒹// ;;; yatex.el rev. 1.75.3 ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sun Jan 29 19:35:24 2012 on firestorm +;;; Last modified Thu Feb 9 09:52:41 2012 on firestorm ;;; $Id$ ;;; The latest version of this software is always available at; ;;; http://www.yatex.org/ @@ -2003,6 +2003,11 @@ (looking-at ec+command)) (goto-char (match-beginning 0)) (throw 'found t)) + ;;If inside of parentheses, try to escape. + (while (condition-case err + (progn (up-list -1) t) + (error nil))) + (while (equal (preceding-char) ?\]) (backward-list)) ;;(2) search command directly (skip-chars-forward "^{}[]") (and (YaTeX-re-search-active-backward