yatex
changeset 291:027c4e8d98ce dev
Set last-command-event locally too.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 12 Feb 2013 18:24:19 +0900 |
parents | 1a4332ecc58b |
children | e1c1616c4f07 |
files | yatex.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Sun Jan 27 23:34:29 2013 +0900 1.2 +++ b/yatex.el Tue Feb 12 18:24:19 2013 +0900 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- 1.5 ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org] 1.6 -;;; Last modified Sun Jan 27 20:10:46 2013 on firestorm 1.7 +;;; Last modified Tue Feb 12 14:11:51 2013 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 @@ -2546,7 +2546,8 @@ 1.12 (progn 1.13 (setq maketitle (substring (YaTeX-match-string 0) 1)) 1.14 (setq memberp (YaTeX-math-member-p maketitle)))) 1.15 - (let ((last-command-char (string-to-char (car memberp)))) 1.16 + (let*((last-command-char (string-to-char (car memberp))) 1.17 + (last-command-event last-command-char)) 1.18 (setq beg (match-beginning 0) end (match-end 0)) 1.19 (delete-region beg end) 1.20 (YaTeX-math-insert-sequence t (cdr memberp))))))