Add patch of issue 48
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Nobuhiro Iwamatsu
13 years ago
0 | # http://code.google.com/p/mozc/issues/detail?id=48 | |
1 | # irieshinsuke | |
2 | ||
3 | Index: unix/emacs/mozc.el | |
4 | =================================================================== | |
5 | --- a/unix/emacs/mozc.el (revision 47) | |
6 | +++ b/unix/emacs/mozc.el (working copy) | |
7 | @@ -112,10 +112,6 @@ | |
8 | ;; disabled | |
9 | (mozc-clean-up-session) | |
10 | ;; enabled | |
11 | - ;; Check the terminal type. | |
12 | - (unless window-system | |
13 | - ;; TODO(yukishiino): Better supports tty terminals. | |
14 | - (error "Mozc doesn't support a tty terminal")) | |
15 | ;; Put the keymap at the top of the list of minor mode keymaps. | |
16 | (setq minor-mode-map-alist | |
17 | (cons (cons 'mozc-mode mozc-mode-map) | |
18 | @@ -198,7 +194,7 @@ | |
19 | without Mozc finding another command bound to the key sequence. | |
20 | ||
21 | EVENT is the last input event, which is usually passed by the command loop." | |
22 | - (interactive (list last-input-event)) | |
23 | + (interactive (list last-command-event)) | |
24 | (cond | |
25 | ;; Keyboard event | |
26 | ((or (integerp event) (symbolp event)) | |
27 | @@ -247,6 +243,7 @@ | |
28 | (cons (case basic-type | |
29 | ;; TODO(yuizumi): Supports Kana input. | |
30 | (?\s 'space) ; space | |
31 | + (127 'backspace) | |
32 | (t basic-type)) | |
33 | (event-modifiers event)))) |