# HG changeset patch # User yuuji@gentei.org # Date 1327757550 -32400 # Node ID 328a212a2160772a39ad5d801436d65c9c7653b8 # Parent f70aae80489edb1c37678fc066c473aa3eda3b38 Intelligent newline for align insert no `&' at the first line. diff -r f70aae80489e -r 328a212a2160 yatexenv.el --- a/yatexenv.el Sat Jan 28 20:05:23 2012 +0900 +++ b/yatexenv.el Sat Jan 28 22:32:30 2012 +0900 @@ -2,7 +2,7 @@ ;;; YaTeX environment-specific functions. ;;; yatexenv.el ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sat Jan 28 18:31:05 2012 on firestorm +;;; Last modified Sat Jan 28 22:27:24 2012 on firestorm ;;; $Id$ ;;; @@ -189,10 +189,8 @@ "\\(&\\)\\|\\(\\\\\\\\\\)" YaTeX-comment-prefix p t) (if (match-beginning 1) (setq cols (1+ cols)) (throw 'done t))))) (save-excursion - (if (= cols 0) - (insert "&") - (while (>= (setq cols (1- cols)) 0) - (insert "& ")))) + (while (>= (setq cols (1- cols)) 0) + (insert "& "))) (YaTeX-indent-line))) (mapcar