yatex
changeset 285:032d08cdcca2 dev
Activate YaTeX-use-jmode-hook only if using canna.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 11 Jul 2012 12:28:38 +0900 |
parents | 1dfd45c98def |
children | bf201e406e3f |
files | yatex.el |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Thu May 31 09:39:15 2012 +0900 1.2 +++ b/yatex.el Wed Jul 11 12:28:38 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.76.1 1.7 +;;; yatex.el rev. 1.76.2 1.8 ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org] 1.9 -;;; Last modified Mon May 14 21:33:44 2012 on firestorm 1.10 +;;; Last modified Wed Jul 11 12:27:24 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.76.1" 1.18 +(defconst YaTeX-revision-number "1.76.2" 1.19 "Revision number of running yatex.el") 1.20 1.21 ;---------- Local variables ---------- 1.22 @@ -1507,7 +1507,9 @@ 1.23 ; (backward-char 1)) 1.24 (t (YaTeX-self-insert arg)))) 1.25 1.26 -(defvar YaTeX-use-jmode-hook (not (and (fboundp 'skk-mode) (boundp 'skk-mode))) 1.27 +(defvar YaTeX-use-jmode-hook 1.28 + (and (featurep 'canna) (boundp 'canna:*initialized*) canna:*initialized*) 1.29 + ;; (not (and (fboundp 'skk-mode) (boundp 'skk-mode))) 1.30 "*Non-nil means activate automatic jmode switcher within/out math mode. 1.31 Hopefully, change default to t in the next version of 1.75.") 1.32 (defun YaTeX-jmode-hook (old new)