annotate lisp/language/korea-util.el @ 104626:caa79498564a

* subr.el (default-mode-line-format, default-header-line-format) (default-line-spacing, default-abbrev-mode, default-ctl-arrow) (default-direction-reversed, default-truncate-lines) (default-left-margin, default-tab-width, default-case-fold-search) (default-left-margin-width, default-right-margin-width) (default-left-fringe-width, default-right-fringe-width) (default-fringes-outside-margins, default-scroll-bar-width) (default-vertical-scroll-bar, default-indicate-empty-lines) (default-indicate-buffer-boundaries, default-fringe-indicator-alist) (default-fringe-cursor-alist, default-scroll-up-aggressively) (default-scroll-down-aggressively, default-fill-column) (default-cursor-type, default-buffer-file-type) (default-cursor-in-non-selected-windows) (default-buffer-file-coding-system, default-major-mode) (default-enable-multibyte-characters): Mark as obsolete. * cus-start.el (default-major-mode): Customize `major-mode' instead. (enable-multibyte-characters): Not customizable any more.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 27 Aug 2009 04:24:00 +0000
parents a4b47cc25ea0
children 25e1d7e37015
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; korea-util.el --- utilities for Korean
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
100908
a9dc0e7c3f2b Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 94665
diff changeset
3 ;; Copyright (C) 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
74544
43cc94d955c2 Update copyright years.
Glenn Morris <rgm@gnu.org>
parents: 64085
diff changeset
4 ;; Free Software Foundation, Inc.
79711
b5d3fc1c4afe Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78309
diff changeset
5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
100908
a9dc0e7c3f2b Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 94665
diff changeset
6 ;; 2007, 2008, 2009
62396
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
8 ;; Registration Number H14PRO021
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 ;; Keywords: mule, multilingual, Korean
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; This file is part of GNU Emacs.
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13
94665
55b7f25d920a Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 93975
diff changeset
14 ;; GNU Emacs is free software: you can redistribute it and/or modify
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; it under the terms of the GNU General Public License as published by
94665
55b7f25d920a Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 93975
diff changeset
16 ;; the Free Software Foundation, either version 3 of the License, or
55b7f25d920a Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 93975
diff changeset
17 ;; (at your option) any later version.
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 ;; GNU Emacs is distributed in the hope that it will be useful,
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; GNU General Public License for more details.
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24 ;; You should have received a copy of the GNU General Public License
94665
55b7f25d920a Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 93975
diff changeset
25 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26
38414
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 28906
diff changeset
27 ;;; Commentary:
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 28906
diff changeset
28
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29 ;;; Code:
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 ;;;###autoload
25599
34282f1ae111 (default-korean-keyboard): Initialize it
Kenichi Handa <handa@m17n.org>
parents: 24717
diff changeset
32 (defvar default-korean-keyboard
34282f1ae111 (default-korean-keyboard): Initialize it
Kenichi Handa <handa@m17n.org>
parents: 24717
diff changeset
33 (if (string-match "3" (or (getenv "HANGUL_KEYBOARD_TYPE") ""))
34282f1ae111 (default-korean-keyboard): Initialize it
Kenichi Handa <handa@m17n.org>
parents: 24717
diff changeset
34 "3"
34282f1ae111 (default-korean-keyboard): Initialize it
Kenichi Handa <handa@m17n.org>
parents: 24717
diff changeset
35 "")
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 "*The kind of Korean keyboard for Korean input method.
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 \"\" for 2, \"3\" for 3.")
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 ;; functions useful for Korean text input
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 (defun toggle-korean-input-method ()
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 "Turn on or off a Korean text input method for the current buffer."
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 (interactive)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 (if current-input-method
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 (inactivate-input-method)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 (activate-input-method
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 (concat "korean-hangul" default-korean-keyboard))))
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49 (defun quail-hangul-switch-symbol-ksc (&rest ignore)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 "Swith to/from Korean symbol package."
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 (interactive "i")
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 (and current-input-method
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 (if (string-equal current-input-method "korean-symbol")
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 (activate-input-method (concat "korean-hangul"
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 default-korean-keyboard))
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 (activate-input-method "korean-symbol"))))
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 (defun quail-hangul-switch-hanja (&rest ignore)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 "Swith to/from Korean hanja package."
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 (interactive "i")
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 (and current-input-method
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 (if (string-match "korean-hanja" current-input-method)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 (activate-input-method (concat "korean-hangul"
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 default-korean-keyboard))
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 (activate-input-method (concat "korean-hanja"
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 default-korean-keyboard)))))
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
68 ;; The following three commands are set in isearch-mode-map.
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
69
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
70 (defun isearch-toggle-korean-input-method ()
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
71 (interactive)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
72 (let ((overriding-terminal-local-map nil))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
73 (toggle-korean-input-method))
24717
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
74 (setq isearch-input-method-function input-method-function
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
75 isearch-input-method-local-p t)
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
76 (setq input-method-function nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
77 (isearch-update))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
78
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
79 (defun isearch-hangul-switch-symbol-ksc ()
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
80 (interactive)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
81 (let ((overriding-terminal-local-map nil))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
82 (quail-hangul-switch-symbol-ksc))
24717
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
83 (setq isearch-input-method-function input-method-function
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
84 isearch-input-method-local-p t)
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
85 (setq input-method-function nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
86 (isearch-update))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
87
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
88 (defun isearch-hangul-switch-hanja ()
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
89 (interactive)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
90 (let ((overriding-terminal-local-map nil))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
91 (quail-hangul-switch-hanja))
24717
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
92 (setq isearch-input-method-function input-method-function
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
93 isearch-input-method-local-p t)
ea66a10b8c12 * language/korea-util.el (isearch-toggle-korean-input-method):
Kenichi Handa <handa@m17n.org>
parents: 22987
diff changeset
94 (setq input-method-function nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
95 (isearch-update))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
96
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
97 ;; Information for setting and exiting Korean environment.
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
98 (defvar korean-key-bindings
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
99 `((global [?\S- ] toggle-korean-input-method nil)
103466
5fe572f454c7 (korean-key-bindings): Add binding for key Hangul.
Kenichi Handa <handa@m17n.org>
parents: 100908
diff changeset
100 (global [Hangul] toggle-korean-input-method nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
101 (global [C-f9] quail-hangul-switch-symbol-ksc nil)
103538
ec2e82c2fc34 (korean-key-bindings): Change the binding of F9 to
Kenichi Handa <handa@m17n.org>
parents: 103471
diff changeset
102 (global [f9] hangul-to-hanja-conversion nil)
ec2e82c2fc34 (korean-key-bindings): Change the binding of F9 to
Kenichi Handa <handa@m17n.org>
parents: 103471
diff changeset
103 (global [Hangul_Hanja] hangul-to-hanja-conversion nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
104 (,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil)
103466
5fe572f454c7 (korean-key-bindings): Add binding for key Hangul.
Kenichi Handa <handa@m17n.org>
parents: 100908
diff changeset
105 (,isearch-mode-map [Hangul] isearch-toggle-korean-input-method nil)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
106 (,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
107 (,isearch-mode-map [f9] isearch-hangul-switch-hanja nil)))
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 ;;;###autoload
22987
708271862495 (setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents: 22617
diff changeset
110 (defun setup-korean-environment-internal ()
103632
a4b47cc25ea0 (setup-korean-environment-internal): Make
Kenichi Handa <handa@m17n.org>
parents: 103538
diff changeset
111 (use-cjk-char-width-table 'ko_KR)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
112 (let ((key-bindings korean-key-bindings))
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 (while key-bindings
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
114 (let* ((this (car key-bindings))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
115 (key (nth 1 this))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
116 (new-def (nth 2 this))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
117 old-def)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
118 (if (eq (car this) 'global)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
119 (progn
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
120 (setq old-def (global-key-binding key))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
121 (global-set-key key new-def))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
122 (setq old-def (lookup-key (car this) key))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
123 (define-key (car this) key new-def))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
124 (setcar (nthcdr 3 this) old-def))
103471
fb1ed86c4fa8 (setup-korean-environment-internal, exit-korean-environment): Cancel
Kenichi Handa <handa@m17n.org>
parents: 103466
diff changeset
125 (setq key-bindings (cdr key-bindings)))))
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 (defun exit-korean-environment ()
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 "Exit Korean language environment."
103632
a4b47cc25ea0 (setup-korean-environment-internal): Make
Kenichi Handa <handa@m17n.org>
parents: 103538
diff changeset
129 (use-default-char-width-table)
22617
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
130 (let ((key-bindings korean-key-bindings))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
131 (while key-bindings
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
132 (let* ((this (car key-bindings))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
133 (key (nth 1 this))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
134 (new-def (nth 2 this))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
135 (old-def (nth 3 this)))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
136 (if (eq (car this) 'global)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
137 (if (eq (global-key-binding key) new-def)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
138 (global-set-key key old-def))
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
139 (if (eq (lookup-key (car this) key) new-def)
bcb4a7a67d13 (isearch-toggle-korean-input-method,
Kenichi Handa <handa@m17n.org>
parents: 20738
diff changeset
140 (define-key (car this) key old-def))))
103471
fb1ed86c4fa8 (setup-korean-environment-internal, exit-korean-environment): Cancel
Kenichi Handa <handa@m17n.org>
parents: 103466
diff changeset
141 (setq key-bindings (cdr key-bindings)))))
20442
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 ;;
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 (provide 'korea-util)
da84d48fd13b Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145
93975
1e3a407766b9 Fix up comment convention on the arch-tag lines.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 79711
diff changeset
146 ;; arch-tag: b17d0981-05da-4577-99f8-1db87fff8b44
38414
67b464da13ec Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 28906
diff changeset
147 ;;; korea-util.el ends here