Mercurial > hgrepos > hgweb.cgi > yatex
changeset 245:8ad85ce1ee98 dev
YaTeX-on-section-command-p tries to escape parentheses.
author | yuuji@gentei.org |
---|---|
date | Thu, 09 Feb 2012 09:54:06 +0900 |
parents | d5e0c33d7dfd |
children | 9105918e45a2 |
files | yatex.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/yatex.el Thu Feb 09 08:45:22 2012 +0900 +++ b/yatex.el Thu Feb 09 09:54:06 2012 +0900 @@ -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