yatex

changeset 390:fa7370eb8292 dev

Call YaTeX-insert-braces-region when region-active-p ("{")
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 15 Jan 2015 10:49:53 +0900
parents 3a235b173835
children e834bbfce2ab
files yatex.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/yatex.el	Wed Jan 07 09:21:53 2015 +0900
     1.2 +++ b/yatex.el	Thu Jan 15 10:49:53 2015 +0900
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
     1.5  ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Tue Jan  6 23:19:53 2015 on firestorm
     1.7 +;;; Last modified Thu Jan 15 10:42:01 2015 on firestorm
     1.8  ;;; $Id$
     1.9  ;;; The latest version of this software is always available at;
    1.10  ;;; http://www.yatex.org/
    1.11 @@ -1267,6 +1267,8 @@
    1.12  			  (get 'YaTeX-insert-braces 'begend-guide)))))))))
    1.13  	env macro not-literal b e)
    1.14      (cond
    1.15 +     ((and (fboundp 'region-active-p) (region-active-p))
    1.16 +      (YaTeX-insert-braces-region (region-beginning) (region-end)))
    1.17       ((YaTeX-jmode) (YaTeX-self-insert arg))
    1.18       ((not (YaTeX-closable-p)) (YaTeX-self-insert arg))
    1.19       ((save-excursion