[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/lisp/language korea-util.el
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] emacs/lisp/language korea-util.el |
Date: |
Thu, 18 Jun 2009 01:02:02 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kenichi Handa <handa> 09/06/18 01:02:02
Modified files:
lisp/language : korea-util.el
Log message:
(korean-key-bindings): Add binding for key Hangul.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/language/korea-util.el?cvsroot=emacs&r1=1.19&r2=1.20
Patches:
Index: korea-util.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/language/korea-util.el,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- korea-util.el 5 Jan 2009 03:22:27 -0000 1.19
+++ korea-util.el 18 Jun 2009 01:02:02 -0000 1.20
@@ -97,9 +97,11 @@
;; Information for setting and exiting Korean environment.
(defvar korean-key-bindings
`((global [?\S- ] toggle-korean-input-method nil)
+ (global [Hangul] toggle-korean-input-method nil)
(global [C-f9] quail-hangul-switch-symbol-ksc nil)
(global [f9] quail-hangul-switch-hanja nil)
(,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil)
+ (,isearch-mode-map [Hangul] isearch-toggle-korean-input-method nil)
(,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil)
(,isearch-mode-map [f9] isearch-hangul-switch-hanja nil)))
@@ -118,7 +120,9 @@
(setq old-def (lookup-key (car this) key))
(define-key (car this) key new-def))
(setcar (nthcdr 3 this) old-def))
- (setq key-bindings (cdr key-bindings)))))
+ (setq key-bindings (cdr key-bindings))))
+ (use-cjk-char-width-table 'ko_KR))
+
(defun exit-korean-environment ()
"Exit Korean language environment."
@@ -133,7 +137,8 @@
(global-set-key key old-def))
(if (eq (lookup-key (car this) key) new-def)
(define-key (car this) key old-def))))
- (setq key-bindings (cdr key-bindings)))))
+ (setq key-bindings (cdr key-bindings))))
+ (use-default-char-width-table))
;;
(provide 'korea-util)
- [Emacs-diffs] emacs/lisp/language korea-util.el,
Kenichi Handa <=