diff options
| author | Kenichi Handa | 2009-06-18 01:02:45 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-06-18 01:02:45 +0000 |
| commit | 269a9d1a9aaaf78ab2929a8d547e9c528ff77136 (patch) | |
| tree | d4e85ca3a03dca9721a4828652231ea267da3c43 | |
| parent | d5e9630f601af77de74bd2175a80a730f4da4c82 (diff) | |
| download | emacs-269a9d1a9aaaf78ab2929a8d547e9c528ff77136.tar.gz emacs-269a9d1a9aaaf78ab2929a8d547e9c528ff77136.zip | |
(korean-key-bindings): Add binding for key Hangul.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/language/korea-util.el | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 02ccb072bf8..8a6b2b6be5b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-06-18 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * language/korea-util.el (korean-key-bindings): Add binding for | ||
| 4 | key Hangul. | ||
| 5 | |||
| 1 | 2009-06-17 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-06-17 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | 8 | * progmodes/compile.el (compilation-error-regexp-alist-alist): |
diff --git a/lisp/language/korea-util.el b/lisp/language/korea-util.el index e3426604f25..56abda35336 100644 --- a/lisp/language/korea-util.el +++ b/lisp/language/korea-util.el | |||
| @@ -97,9 +97,11 @@ | |||
| 97 | ;; Information for setting and exiting Korean environment. | 97 | ;; Information for setting and exiting Korean environment. |
| 98 | (defvar korean-key-bindings | 98 | (defvar korean-key-bindings |
| 99 | `((global [?\S- ] toggle-korean-input-method nil) | 99 | `((global [?\S- ] toggle-korean-input-method nil) |
| 100 | (global [Hangul] toggle-korean-input-method nil) | ||
| 100 | (global [C-f9] quail-hangul-switch-symbol-ksc nil) | 101 | (global [C-f9] quail-hangul-switch-symbol-ksc nil) |
| 101 | (global [f9] quail-hangul-switch-hanja nil) | 102 | (global [f9] quail-hangul-switch-hanja nil) |
| 102 | (,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil) | 103 | (,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil) |
| 104 | (,isearch-mode-map [Hangul] isearch-toggle-korean-input-method nil) | ||
| 103 | (,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil) | 105 | (,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil) |
| 104 | (,isearch-mode-map [f9] isearch-hangul-switch-hanja nil))) | 106 | (,isearch-mode-map [f9] isearch-hangul-switch-hanja nil))) |
| 105 | 107 | ||
| @@ -118,7 +120,9 @@ | |||
| 118 | (setq old-def (lookup-key (car this) key)) | 120 | (setq old-def (lookup-key (car this) key)) |
| 119 | (define-key (car this) key new-def)) | 121 | (define-key (car this) key new-def)) |
| 120 | (setcar (nthcdr 3 this) old-def)) | 122 | (setcar (nthcdr 3 this) old-def)) |
| 121 | (setq key-bindings (cdr key-bindings))))) | 123 | (setq key-bindings (cdr key-bindings)))) |
| 124 | (use-cjk-char-width-table 'ko_KR)) | ||
| 125 | |||
| 122 | 126 | ||
| 123 | (defun exit-korean-environment () | 127 | (defun exit-korean-environment () |
| 124 | "Exit Korean language environment." | 128 | "Exit Korean language environment." |
| @@ -133,7 +137,8 @@ | |||
| 133 | (global-set-key key old-def)) | 137 | (global-set-key key old-def)) |
| 134 | (if (eq (lookup-key (car this) key) new-def) | 138 | (if (eq (lookup-key (car this) key) new-def) |
| 135 | (define-key (car this) key old-def)))) | 139 | (define-key (car this) key old-def)))) |
| 136 | (setq key-bindings (cdr key-bindings))))) | 140 | (setq key-bindings (cdr key-bindings)))) |
| 141 | (use-default-char-width-table)) | ||
| 137 | 142 | ||
| 138 | ;; | 143 | ;; |
| 139 | (provide 'korea-util) | 144 | (provide 'korea-util) |