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 wrap: on
line diff
--- a/yatex.el	Wed Jan 07 09:21:53 2015 +0900
+++ b/yatex.el	Thu Jan 15 10:49:53 2015 +0900
@@ -1,6 +1,6 @@
 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
 ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Tue Jan  6 23:19:53 2015 on firestorm
+;;; Last modified Thu Jan 15 10:42:01 2015 on firestorm
 ;;; $Id$
 ;;; The latest version of this software is always available at;
 ;;; http://www.yatex.org/
@@ -1267,6 +1267,8 @@
 			  (get 'YaTeX-insert-braces 'begend-guide)))))))))
 	env macro not-literal b e)
     (cond
+     ((and (fboundp 'region-active-p) (region-active-p))
+      (YaTeX-insert-braces-region (region-beginning) (region-end)))
      ((YaTeX-jmode) (YaTeX-self-insert arg))
      ((not (YaTeX-closable-p)) (YaTeX-self-insert arg))
      ((save-excursion

yatex.org