yatex
diff yatex.el @ 120:8772bd5d1f02
Do not ask again when user answer n to usepackage addition.
Suggested and patched by Tsuchiya-san.
author | yuuji@gentei.org |
---|---|
date | Wed, 13 Jan 2010 15:30:13 +0900 |
parents | d63a7297756a |
children | 590fc51462c7 |
line diff
1.1 --- a/yatex.el Thu Oct 15 14:28:50 2009 +0900 1.2 +++ b/yatex.el Wed Jan 13 15:30:13 2010 +0900 1.3 @@ -2,8 +2,8 @@ 1.4 ;;; Yet Another tex-mode for emacs - //–ì’¹// 1.5 ;;; yatex.el rev. 1.74.1 1.6 ;;; (c)1991-2009 by HIROSE Yuuji.[yuuji@yatex.org] 1.7 -;;; Last modified Thu Oct 15 14:27:41 2009 on firestorm 1.8 -;;; $Id: yatex.el,v ce2deaceb818 2009/09/28 02:37:27 yuuji $ 1.9 +;;; Last modified Wed Dec 23 20:05:55 2009 on firestorm 1.10 +;;; $Id$ 1.11 ;;; The latest version of this software is always available at; 1.12 ;;; http://www.yatex.org/ 1.13 1.14 @@ -2205,7 +2205,8 @@ 1.15 1.16 (defun YaTeX-read-section-with-overview () 1.17 "Read sectioning command with overview. 1.18 -This function refers a local variable `source-window' in YaTeX-make-section" 1.19 +This function refers a local variable `source-window' in YaTeX-make-section, 1.20 +because this function is called with no argument." 1.21 (interactive) 1.22 (require 'yatexsec) ;some case needs this 1.23 (if (> (minibuffer-depth) 1) 1.24 @@ -2265,7 +2266,7 @@ 1.25 (beg (make-marker)) (end (make-marker)) old new) 1.26 (if (null where) nil 1.27 (unwind-protect 1.28 - (progn 1.29 + (let ((source-window (selected-window))) 1.30 (cond 1.31 ((equal where 0);;if point is on section command 1.32 (set-marker beg (match-beginning 1))