yatex
diff yatexsec.el @ 181:ab7cd5129797
Keep buffer-modified-p in YaTeX-jmode-hook().
author | yuuji@gentei.org |
---|---|
date | Fri, 07 Oct 2011 16:00:52 +0900 |
parents | 0734be649cb8 |
children | cf7352dfa40c |
line diff
1.1 --- a/yatexsec.el Thu Dec 25 04:10:32 2003 +0000 1.2 +++ b/yatexsec.el Fri Oct 07 16:00:52 2011 +0900 1.3 @@ -2,7 +2,7 @@ 1.4 ;;; YaTeX sectioning browser. 1.5 ;;; yatexsec.el 1.6 ;;; (c) 1994,1998,1999,2003 by HIROSE Yuuji [yuuji@yatex.org] 1.7 -;;; Last modified Fri Jun 27 12:10:34 2003 on firestorm 1.8 +;;; Last modified Thu Mar 24 10:35:24 2011 on firestorm 1.9 ;;; $Id$ 1.10 1.11 (defvar YaTeX-sectioning-level 1.12 @@ -133,7 +133,8 @@ 1.13 (or 1.14 (and ln (string< "" ln) 1.15 (progn 1.16 - (goto-line (max 1 (1- (string-to-int ln)))) 1.17 + (goto-char (point-min)) 1.18 + (forward-line (max 0 (- (string-to-int ln) 2))) 1.19 (and 1.20 (search-forward ptn nil t) 1.21 (goto-char (match-beginning 0)))))