yatex
changeset 236:328a212a2160 dev
Intelligent newline for align insert no `&' at the first line.
author | yuuji@gentei.org |
---|---|
date | Sat, 28 Jan 2012 22:32:30 +0900 |
parents | f70aae80489e |
children | af1e6c48eac0 |
files | yatexenv.el |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/yatexenv.el Sat Jan 28 20:05:23 2012 +0900 1.2 +++ b/yatexenv.el Sat Jan 28 22:32:30 2012 +0900 1.3 @@ -2,7 +2,7 @@ 1.4 ;;; YaTeX environment-specific functions. 1.5 ;;; yatexenv.el 1.6 ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org] 1.7 -;;; Last modified Sat Jan 28 18:31:05 2012 on firestorm 1.8 +;;; Last modified Sat Jan 28 22:27:24 2012 on firestorm 1.9 ;;; $Id$ 1.10 1.11 ;;; 1.12 @@ -189,10 +189,8 @@ 1.13 "\\(&\\)\\|\\(\\\\\\\\\\)" YaTeX-comment-prefix p t) 1.14 (if (match-beginning 1) (setq cols (1+ cols)) (throw 'done t))))) 1.15 (save-excursion 1.16 - (if (= cols 0) 1.17 - (insert "&") 1.18 - (while (>= (setq cols (1- cols)) 0) 1.19 - (insert "& ")))) 1.20 + (while (>= (setq cols (1- cols)) 0) 1.21 + (insert "& "))) 1.22 (YaTeX-indent-line))) 1.23 1.24 (mapcar