yatex

changeset 239:5de195a540c7 dev

YaTeX-intelligent-newline-document recognizes \par lover.
author yuuji@gentei.org
date Sun, 29 Jan 2012 17:29:02 +0900
parents 5260b7ee9fdf
children 5ab3322d0f03
files yatex.el yatexenv.el
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/yatex.el	Sun Jan 29 16:13:07 2012 +0900
     1.2 +++ b/yatex.el	Sun Jan 29 17:29:02 2012 +0900
     1.3 @@ -1,15 +1,15 @@
     1.4  ;;; -*- Emacs-Lisp -*-
     1.5  ;;; Yet Another tex-mode for emacs - //–ì’¹//
     1.6 -;;; yatex.el rev. 1.75.2
     1.7 +;;; yatex.el rev. 1.75.3
     1.8  ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org]
     1.9 -;;; Last modified Mon Jan 23 07:58:11 2012 on firestorm
    1.10 +;;; Last modified Sun Jan 29 17:27:03 2012 on firestorm
    1.11  ;;; $Id$
    1.12  ;;; The latest version of this software is always available at;
    1.13  ;;; http://www.yatex.org/
    1.14  
    1.15  (require 'comment)
    1.16  (require 'yatexlib)
    1.17 -(defconst YaTeX-revision-number "1.75.2"
    1.18 +(defconst YaTeX-revision-number "1.75.3"
    1.19    "Revision number of running yatex.el")
    1.20  
    1.21  ;---------- Local variables ----------
     2.1 --- a/yatexenv.el	Sun Jan 29 16:13:07 2012 +0900
     2.2 +++ b/yatexenv.el	Sun Jan 29 17:29:02 2012 +0900
     2.3 @@ -2,7 +2,7 @@
     2.4  ;;; YaTeX environment-specific functions.
     2.5  ;;; yatexenv.el
     2.6  ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org]
     2.7 -;;; Last modified Sun Jan 29 16:08:09 2012 on firestorm
     2.8 +;;; Last modified Sun Jan 29 17:23:40 2012 on firestorm
     2.9  ;;; $Id$
    2.10  
    2.11  ;;;
    2.12 @@ -261,8 +261,13 @@
    2.13  ;; For document environment
    2.14  ;;;
    2.15  (defun YaTeX-intelligent-newline-document ()
    2.16 -  "New paragraph."
    2.17 -  (newline))				;Do you prefer `\par'?
    2.18 +  "New paragraph by null line or `\\par'."
    2.19 +  (if (save-excursion (re-search-backward "\\\\par\\>" nil t))
    2.20 +      (progn
    2.21 +	(YaTeX-indent-line)
    2.22 +	(insert "\\par")))
    2.23 +  (newline)
    2.24 +  (YaTeX-indent-line))
    2.25  
    2.26  ;;;
    2.27  ;; Intelligent newline