X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/f7ff1b0f0792f1f870778404531e68e77832c4a1..2a1e24765bc3de7bf72e7117893307f6f6c441be:/leim/quail/hangul.el diff --git a/leim/quail/hangul.el b/leim/quail/hangul.el index 660e776362..fd1dc0d295 100644 --- a/leim/quail/hangul.el +++ b/leim/quail/hangul.el @@ -1,6 +1,6 @@ ;;; hangul.el --- Korean Hangul input method -;; Copyright (C) 2008-2011 Free Software Foundation, Inc. +;; Copyright (C) 2008-2012 Free Software Foundation, Inc. ;; Author: Jihyun Cho ;; Keywords: multilingual, input method, Korean, Hangul @@ -30,7 +30,6 @@ ;;; Code: (require 'quail) -(eval-when-compile (require 'cl)) ; for setf (require 'hanja-util) ;; Hangul double Jamo table. @@ -112,7 +111,7 @@ (defun hangul-character (cho jung jong) "Convert CHO, JUNG, JONG to the precomposed `Hangul Syllables' character. -CHO, JUNG, JONG are relative indices in `Hangul Compatibility Jamo' of unicode. +CHO, JUNG, JONG are relative indices in `Hangul Compatibility Jamo' of Unicode. Return a zero-length string if the conversion fails." (or (decode-char @@ -513,7 +512,7 @@ When a Korean input method is off, convert the following hangul character." "Activate Hangul input method INPUT-METHOD. FUNC is a function to handle input key. HELP-TEXT is a text set in `hangul-input-method-help-text'." - (setq inactivate-current-input-method-function 'hangul-input-method-inactivate + (setq deactivate-current-input-method-function 'hangul-input-method-deactivate describe-current-input-method-function 'hangul-input-method-help hangul-input-method-help-text help-text) (quail-delete-overlays) @@ -521,8 +520,8 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'." (add-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)) (set (make-local-variable 'input-method-function) func)) -(defun hangul-input-method-inactivate () - "Inactivate the current Hangul input method." +(defun hangul-input-method-deactivate () + "Deactivate the current Hangul input method." (interactive) (unwind-protect (progn @@ -531,6 +530,10 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'." (setq describe-current-input-method-function nil)) (kill-local-variable 'input-method-function))) +(define-obsolete-function-alias + 'hangul-input-method-inactivate + 'hangul-input-method-deactivate "24.3") + (defun hangul-input-method-help () "Describe the current Hangul input method." (interactive)