deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)
* NEWS: Document these changes. * leim/quail/uni-input.el (ucs-input-deactivate): Rename from ucs-input-inactivate. * leim/quail/hangul.el (hangul-input-method-deactivate): Rename from hangul-input-method-inactivate. * emulation/viper-init.el (viper-deactivate-input-method-action): Rename from viper-inactivate-input-method-action. (viper-deactivate-input-method): Rename from viper-inactivate-input-method. * lisp/follow.el (follow-inactive-menu): Rename from follow-deactive-menu. * lisp/international/mule-cmds.el (deactivate-input-method): Rename from inactivate-input-method. Also run input-method-deactivate-hook. (deactivate-current-input-method-function): Rename from inactivate-current-input-method-function. (input-method-deactivate-hook): New hook. (input-method-inactivate-hook): Mark obsolete. * lisp/international/quail.el (quail-activate): Also run quail-deactivate-hook. (quail-deactivate): Rename from quail-inactivate. * lisp/international/robin.el (robin-activate): Also run robin-deactivate-hook. (robin-deactivate): Rename from robin-inactivate.
This commit is contained in:
parent
2549c068e1
commit
72b255c7e7
15 changed files with 150 additions and 53 deletions
|
|
@ -243,10 +243,10 @@ completion-annotate-function
|
||||||
completion-at-point-functions
|
completion-at-point-functions
|
||||||
completion-in-region-functions
|
completion-in-region-functions
|
||||||
completion-list-insert-choice-function
|
completion-list-insert-choice-function
|
||||||
|
deactivate-current-input-method-function
|
||||||
describe-current-input-method-function
|
describe-current-input-method-function
|
||||||
filter-buffer-substring-functions
|
filter-buffer-substring-functions
|
||||||
font-lock-function
|
font-lock-function
|
||||||
inactivate-current-input-method-function
|
|
||||||
menu-bar-select-buffer-function
|
menu-bar-select-buffer-function
|
||||||
read-file-name-function
|
read-file-name-function
|
||||||
replace-re-search-function
|
replace-re-search-function
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
2012-07-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)
|
||||||
|
* NEWS: Document these changes.
|
||||||
|
|
||||||
2012-07-28 Juanma Barranquero <lekktu@gmail.com>
|
2012-07-28 Juanma Barranquero <lekktu@gmail.com>
|
||||||
|
|
||||||
* NEWS: Fix typo.
|
* NEWS: Fix typo.
|
||||||
|
|
|
||||||
29
etc/NEWS
29
etc/NEWS
|
|
@ -499,6 +499,35 @@ third argument is a frame (that usage was obsolete since Emacs 22.2).
|
||||||
but keywords or keyword-string pairs. The old argument list will
|
but keywords or keyword-string pairs. The old argument list will
|
||||||
still be supported for Emacs 24.x.
|
still be supported for Emacs 24.x.
|
||||||
|
|
||||||
|
** Spelling changes.
|
||||||
|
Some Lisp symbols have been renamed to avoid problems with spelling
|
||||||
|
that is incorrect or inconsistent with how Emacs normally spells a word.
|
||||||
|
|
||||||
|
*** Renamed functions
|
||||||
|
|
||||||
|
**** hangul-input-method-inactivate -> hangul-input-method-deactivate
|
||||||
|
**** inactivate-input-method -> deactivate-input-method
|
||||||
|
**** quail-inactivate -> quail-deactivate
|
||||||
|
**** robin-inactivate -> robin-deactivate
|
||||||
|
**** viper-inactivate-input-method -> viper-deactivate-input-method
|
||||||
|
**** viper-inactivate-input-method-action ->
|
||||||
|
viper-deactivate-input-method-action
|
||||||
|
**** ucs-input-inactivate -> ucs-input-deactivate
|
||||||
|
|
||||||
|
*** Renamed hooks
|
||||||
|
The old hooks are still supported for backward compatibility, but they
|
||||||
|
are deprecated and will be removed eventually.
|
||||||
|
|
||||||
|
**** input-method-inactivate-hook -> input-method-deactivate-hook
|
||||||
|
**** robin-inactivate-hook -> robin-deactivate-hook
|
||||||
|
**** quail-inactivate-hook -> quail-deactivate-hook
|
||||||
|
|
||||||
|
*** Renamed Lisp variables
|
||||||
|
|
||||||
|
**** follow-deactive-menu -> follow-inactive-menu
|
||||||
|
**** inactivate-current-input-method-function ->
|
||||||
|
deactivate-current-input-method-function
|
||||||
|
|
||||||
** The following obsolete variables and varaliases have been removed:
|
** The following obsolete variables and varaliases have been removed:
|
||||||
|
|
||||||
*** `facemenu-unlisted-faces'
|
*** `facemenu-unlisted-faces'
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
2012-07-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)
|
||||||
|
* quail/uni-input.el (ucs-input-deactivate):
|
||||||
|
Rename from ucs-input-inactivate.
|
||||||
|
* quail/hangul.el (hangul-input-method-deactivate):
|
||||||
|
Rename from hangul-input-method-inactivate.
|
||||||
|
|
||||||
2012-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
|
2012-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||||
|
|
||||||
* quail/ipa.el: Use cl-lib.
|
* quail/ipa.el: Use cl-lib.
|
||||||
|
|
|
||||||
|
|
@ -512,7 +512,7 @@ When a Korean input method is off, convert the following hangul character."
|
||||||
"Activate Hangul input method INPUT-METHOD.
|
"Activate Hangul input method INPUT-METHOD.
|
||||||
FUNC is a function to handle input key.
|
FUNC is a function to handle input key.
|
||||||
HELP-TEXT is a text set in `hangul-input-method-help-text'."
|
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
|
describe-current-input-method-function 'hangul-input-method-help
|
||||||
hangul-input-method-help-text help-text)
|
hangul-input-method-help-text help-text)
|
||||||
(quail-delete-overlays)
|
(quail-delete-overlays)
|
||||||
|
|
@ -520,8 +520,8 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'."
|
||||||
(add-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer))
|
(add-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer))
|
||||||
(set (make-local-variable 'input-method-function) func))
|
(set (make-local-variable 'input-method-function) func))
|
||||||
|
|
||||||
(defun hangul-input-method-inactivate ()
|
(defun hangul-input-method-deactivate ()
|
||||||
"Inactivate the current Hangul input method."
|
"Deactivate the current Hangul input method."
|
||||||
(interactive)
|
(interactive)
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(progn
|
(progn
|
||||||
|
|
@ -530,6 +530,10 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'."
|
||||||
(setq describe-current-input-method-function nil))
|
(setq describe-current-input-method-function nil))
|
||||||
(kill-local-variable 'input-method-function)))
|
(kill-local-variable 'input-method-function)))
|
||||||
|
|
||||||
|
(define-obsolete-function-alias
|
||||||
|
'hangul-input-method-inactivate
|
||||||
|
'hangul-input-method-deactivate "24.2")
|
||||||
|
|
||||||
(defun hangul-input-method-help ()
|
(defun hangul-input-method-help ()
|
||||||
"Describe the current Hangul input method."
|
"Describe the current Hangul input method."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ While this input method is active, the variable
|
||||||
(quail-delete-overlays)
|
(quail-delete-overlays)
|
||||||
(setq describe-current-input-method-function nil))
|
(setq describe-current-input-method-function nil))
|
||||||
(kill-local-variable 'input-method-function))
|
(kill-local-variable 'input-method-function))
|
||||||
(setq inactivate-current-input-method-function 'ucs-input-inactivate)
|
(setq deactivate-current-input-method-function 'ucs-input-deactivate)
|
||||||
(setq describe-current-input-method-function 'ucs-input-help)
|
(setq describe-current-input-method-function 'ucs-input-help)
|
||||||
(quail-delete-overlays)
|
(quail-delete-overlays)
|
||||||
(if (eq (selected-window) (minibuffer-window))
|
(if (eq (selected-window) (minibuffer-window))
|
||||||
|
|
@ -107,11 +107,15 @@ While this input method is active, the variable
|
||||||
(set (make-local-variable 'input-method-function)
|
(set (make-local-variable 'input-method-function)
|
||||||
'ucs-input-method)))
|
'ucs-input-method)))
|
||||||
|
|
||||||
(defun ucs-input-inactivate ()
|
(defun ucs-input-deactivate ()
|
||||||
"Inactivate UCS input method."
|
"Deactivate UCS input method."
|
||||||
(interactive)
|
(interactive)
|
||||||
(ucs-input-activate -1))
|
(ucs-input-activate -1))
|
||||||
|
|
||||||
|
(define-obsolete-function-alias
|
||||||
|
'ucs-input-inactivate
|
||||||
|
'ucs-input-deactivate "24.2")
|
||||||
|
|
||||||
(defun ucs-input-help ()
|
(defun ucs-input-help ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(with-output-to-temp-buffer "*Help*"
|
(with-output-to-temp-buffer "*Help*"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,25 @@
|
||||||
|
2012-07-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150)
|
||||||
|
* emulation/viper-init.el (viper-deactivate-input-method-action):
|
||||||
|
Rename from viper-inactivate-input-method-action.
|
||||||
|
(viper-deactivate-input-method):
|
||||||
|
Rename from viper-inactivate-input-method.
|
||||||
|
* follow.el (follow-inactive-menu): Rename from follow-deactive-menu.
|
||||||
|
* international/mule-cmds.el (deactivate-input-method):
|
||||||
|
Rename from inactivate-input-method.
|
||||||
|
Also run input-method-deactivate-hook.
|
||||||
|
(deactivate-current-input-method-function):
|
||||||
|
Rename from inactivate-current-input-method-function.
|
||||||
|
(input-method-deactivate-hook): New hook.
|
||||||
|
(input-method-inactivate-hook): Mark obsolete.
|
||||||
|
* international/quail.el (quail-activate):
|
||||||
|
Also run quail-deactivate-hook.
|
||||||
|
(quail-deactivate): Rename from quail-inactivate.
|
||||||
|
* international/robin.el (robin-activate):
|
||||||
|
Also run robin-deactivate-hook.
|
||||||
|
(robin-deactivate): Rename from robin-inactivate.
|
||||||
|
|
||||||
2012-07-29 Chong Yidong <cyd@gnu.org>
|
2012-07-29 Chong Yidong <cyd@gnu.org>
|
||||||
|
|
||||||
* simple.el (indicate-copied-region): New function.
|
* simple.el (indicate-copied-region): New function.
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,7 @@ Use `M-x viper-set-expert-level' to change this.")
|
||||||
))
|
))
|
||||||
|
|
||||||
;; viper hook to run on input-method deactivation
|
;; viper hook to run on input-method deactivation
|
||||||
(defun viper-inactivate-input-method-action ()
|
(defun viper-deactivate-input-method-action ()
|
||||||
(if (null viper-mule-hook-flag)
|
(if (null viper-mule-hook-flag)
|
||||||
()
|
()
|
||||||
(setq viper-special-input-method nil)
|
(setq viper-special-input-method nil)
|
||||||
|
|
@ -328,9 +328,9 @@ Use `M-x viper-set-expert-level' to change this.")
|
||||||
(or current-input-method default-input-method))
|
(or current-input-method default-input-method))
|
||||||
"")))))
|
"")))))
|
||||||
|
|
||||||
(defun viper-inactivate-input-method ()
|
(defun viper-deactivate-input-method ()
|
||||||
(cond ((and (featurep 'emacs) (fboundp 'inactivate-input-method))
|
(cond ((and (featurep 'emacs) (fboundp 'deactivate-input-method))
|
||||||
(inactivate-input-method))
|
(deactivate-input-method))
|
||||||
((and (featurep 'xemacs) (boundp 'current-input-method))
|
((and (featurep 'xemacs) (boundp 'current-input-method))
|
||||||
;; XEmacs had broken quail-mode for some time, so we are working around
|
;; XEmacs had broken quail-mode for some time, so we are working around
|
||||||
;; it here
|
;; it here
|
||||||
|
|
@ -339,7 +339,9 @@ Use `M-x viper-set-expert-level' to change this.")
|
||||||
(quail-delete-overlays))
|
(quail-delete-overlays))
|
||||||
(setq describe-current-input-method-function nil)
|
(setq describe-current-input-method-function nil)
|
||||||
(setq current-input-method nil)
|
(setq current-input-method nil)
|
||||||
(run-hooks 'input-method-inactivate-hook)
|
(run-hooks
|
||||||
|
'input-method-inactivate-hook ; for backward compatibility
|
||||||
|
'input-method-deactivate-hook)
|
||||||
(force-mode-line-update))
|
(force-mode-line-update))
|
||||||
))
|
))
|
||||||
(defun viper-activate-input-method ()
|
(defun viper-activate-input-method ()
|
||||||
|
|
@ -356,7 +358,7 @@ Use `M-x viper-set-expert-level' to change this.")
|
||||||
;; activate input method
|
;; activate input method
|
||||||
(viper-activate-input-method))
|
(viper-activate-input-method))
|
||||||
(t ; deactivate input method
|
(t ; deactivate input method
|
||||||
(viper-inactivate-input-method)))
|
(viper-deactivate-input-method)))
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -971,9 +971,9 @@ It also can't undo some Viper settings."
|
||||||
(if (featurep 'emacs)
|
(if (featurep 'emacs)
|
||||||
(eval-after-load "mule-cmds"
|
(eval-after-load "mule-cmds"
|
||||||
'(progn
|
'(progn
|
||||||
(defadvice inactivate-input-method (after viper-mule-advice activate)
|
(defadvice deactivate-input-method (after viper-mule-advice activate)
|
||||||
"Set viper-special-input-method to disable intl. input methods."
|
"Set viper-special-input-method to disable intl. input methods."
|
||||||
(viper-inactivate-input-method-action))
|
(viper-deactivate-input-method-action))
|
||||||
(defadvice activate-input-method (after viper-mule-advice activate)
|
(defadvice activate-input-method (after viper-mule-advice activate)
|
||||||
"Set viper-special-input-method to enable intl. input methods."
|
"Set viper-special-input-method to enable intl. input methods."
|
||||||
(viper-activate-input-method-action))
|
(viper-activate-input-method-action))
|
||||||
|
|
@ -985,14 +985,14 @@ It also can't undo some Viper settings."
|
||||||
'(progn
|
'(progn
|
||||||
(add-hook 'input-method-activate-hook
|
(add-hook 'input-method-activate-hook
|
||||||
'viper-activate-input-method-action t)
|
'viper-activate-input-method-action t)
|
||||||
(add-hook 'input-method-inactivate-hook
|
(add-hook 'input-method-deactivate-hook
|
||||||
'viper-inactivate-input-method-action t)))
|
'viper-deactivate-input-method-action t)))
|
||||||
)
|
)
|
||||||
(eval-after-load "mule-cmds"
|
(eval-after-load "mule-cmds"
|
||||||
'(defadvice toggle-input-method (around viper-mule-advice activate)
|
'(defadvice toggle-input-method (around viper-mule-advice activate)
|
||||||
"Adjust input-method toggling in vi-state."
|
"Adjust input-method toggling in vi-state."
|
||||||
(if (and viper-special-input-method (eq viper-current-state 'vi-state))
|
(if (and viper-special-input-method (eq viper-current-state 'vi-state))
|
||||||
(viper-inactivate-input-method)
|
(viper-deactivate-input-method)
|
||||||
ad-do-it)))
|
ad-do-it)))
|
||||||
|
|
||||||
) ; viper-set-hooks
|
) ; viper-set-hooks
|
||||||
|
|
|
||||||
|
|
@ -334,8 +334,8 @@ property `follow-mode-use-cache' to non-nil.")
|
||||||
(defvar follow-active-menu nil
|
(defvar follow-active-menu nil
|
||||||
"The menu visible when Follow mode is active.")
|
"The menu visible when Follow mode is active.")
|
||||||
|
|
||||||
(defvar follow-deactive-menu nil
|
(defvar follow-inactive-menu nil
|
||||||
"The menu visible when Follow mode is deactivated.")
|
"The menu visible when Follow mode is inactive.")
|
||||||
|
|
||||||
(defvar follow-inside-post-command-hook nil
|
(defvar follow-inside-post-command-hook nil
|
||||||
"Non-nil when inside Follow modes `post-command-hook'.
|
"Non-nil when inside Follow modes `post-command-hook'.
|
||||||
|
|
|
||||||
|
|
@ -1331,15 +1331,15 @@ of `history-length', which see.")
|
||||||
(make-variable-buffer-local 'input-method-history)
|
(make-variable-buffer-local 'input-method-history)
|
||||||
(put 'input-method-history 'permanent-local t)
|
(put 'input-method-history 'permanent-local t)
|
||||||
|
|
||||||
(defvar inactivate-current-input-method-function nil
|
(defvar deactivate-current-input-method-function nil
|
||||||
"Function to call for inactivating the current input method.
|
"Function to call for deactivating the current input method.
|
||||||
Every input method should set this to an appropriate value when activated.
|
Every input method should set this to an appropriate value when activated.
|
||||||
This function is called with no argument.
|
This function is called with no argument.
|
||||||
|
|
||||||
This function should never change the value of `current-input-method'.
|
This function should never change the value of `current-input-method'.
|
||||||
It is set to nil by the function `inactivate-input-method'.")
|
It is set to nil by the function `deactivate-input-method'.")
|
||||||
(make-variable-buffer-local 'inactivate-current-input-method-function)
|
(make-variable-buffer-local 'deactivate-current-input-method-function)
|
||||||
(put 'inactivate-current-input-method-function 'permanent-local t)
|
(put 'deactivate-current-input-method-function 'permanent-local t)
|
||||||
|
|
||||||
(defvar describe-current-input-method-function nil
|
(defvar describe-current-input-method-function nil
|
||||||
"Function to call for describing the current input method.
|
"Function to call for describing the current input method.
|
||||||
|
|
@ -1426,7 +1426,7 @@ If INPUT-METHOD is nil, deactivate any current input method."
|
||||||
(setq input-method (symbol-name input-method)))
|
(setq input-method (symbol-name input-method)))
|
||||||
(if (and current-input-method
|
(if (and current-input-method
|
||||||
(not (string= current-input-method input-method)))
|
(not (string= current-input-method input-method)))
|
||||||
(inactivate-input-method))
|
(deactivate-input-method))
|
||||||
(unless (or current-input-method (null input-method))
|
(unless (or current-input-method (null input-method))
|
||||||
(let ((slot (assoc input-method input-method-alist)))
|
(let ((slot (assoc input-method input-method-alist)))
|
||||||
(if (null slot)
|
(if (null slot)
|
||||||
|
|
@ -1447,7 +1447,7 @@ If INPUT-METHOD is nil, deactivate any current input method."
|
||||||
(run-hooks 'input-method-activate-hook)
|
(run-hooks 'input-method-activate-hook)
|
||||||
(force-mode-line-update)))))
|
(force-mode-line-update)))))
|
||||||
|
|
||||||
(defun inactivate-input-method ()
|
(defun deactivate-input-method ()
|
||||||
"Turn off the current input method."
|
"Turn off the current input method."
|
||||||
(when current-input-method
|
(when current-input-method
|
||||||
(if input-method-history
|
(if input-method-history
|
||||||
|
|
@ -1460,9 +1460,11 @@ If INPUT-METHOD is nil, deactivate any current input method."
|
||||||
(progn
|
(progn
|
||||||
(setq input-method-function nil
|
(setq input-method-function nil
|
||||||
current-input-method-title nil)
|
current-input-method-title nil)
|
||||||
(funcall inactivate-current-input-method-function))
|
(funcall deactivate-current-input-method-function))
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(run-hooks 'input-method-inactivate-hook)
|
(run-hooks
|
||||||
|
'input-method-inactivate-hook ; for backward compatibility
|
||||||
|
'input-method-deactivate-hook)
|
||||||
(setq current-input-method nil)
|
(setq current-input-method nil)
|
||||||
(force-mode-line-update)))))
|
(force-mode-line-update)))))
|
||||||
|
|
||||||
|
|
@ -1476,7 +1478,7 @@ When called interactively, the optional arg INTERACTIVE is non-nil,
|
||||||
which marks the variable `default-input-method' as set for Custom buffers.
|
which marks the variable `default-input-method' as set for Custom buffers.
|
||||||
|
|
||||||
To deactivate the input method interactively, use \\[toggle-input-method].
|
To deactivate the input method interactively, use \\[toggle-input-method].
|
||||||
To deactivate it programmatically, use `inactivate-input-method'."
|
To deactivate it programmatically, use `deactivate-input-method'."
|
||||||
(interactive
|
(interactive
|
||||||
(let* ((default (or (car input-method-history) default-input-method)))
|
(let* ((default (or (car input-method-history) default-input-method)))
|
||||||
(list (read-input-method-name
|
(list (read-input-method-name
|
||||||
|
|
@ -1513,7 +1515,7 @@ which marks the variable `default-input-method' as set for Custom buffers."
|
||||||
(if toggle-input-method-active
|
(if toggle-input-method-active
|
||||||
(error "Recursive use of `toggle-input-method'"))
|
(error "Recursive use of `toggle-input-method'"))
|
||||||
(if (and current-input-method (not arg))
|
(if (and current-input-method (not arg))
|
||||||
(inactivate-input-method)
|
(deactivate-input-method)
|
||||||
(let ((toggle-input-method-active t)
|
(let ((toggle-input-method-active t)
|
||||||
(default (or (car input-method-history) default-input-method)))
|
(default (or (car input-method-history) default-input-method)))
|
||||||
(if (and arg default (equal current-input-method default)
|
(if (and arg default (equal current-input-method default)
|
||||||
|
|
@ -1640,13 +1642,18 @@ just activated."
|
||||||
:type 'hook
|
:type 'hook
|
||||||
:group 'mule)
|
:group 'mule)
|
||||||
|
|
||||||
(defcustom input-method-inactivate-hook nil
|
(define-obsolete-variable-alias
|
||||||
"Normal hook run just after an input method is inactivated.
|
'input-method-inactivate-hook
|
||||||
|
'input-method-deactivate-hook "24.2")
|
||||||
|
|
||||||
|
(defcustom input-method-deactivate-hook nil
|
||||||
|
"Normal hook run just after an input method is deactivated.
|
||||||
|
|
||||||
The variable `current-input-method' still keeps the input method name
|
The variable `current-input-method' still keeps the input method name
|
||||||
just inactivated."
|
just deactivated."
|
||||||
:type 'hook
|
:type 'hook
|
||||||
:group 'mule)
|
:group 'mule
|
||||||
|
:version "24.2")
|
||||||
|
|
||||||
(defcustom input-method-after-insert-chunk-hook nil
|
(defcustom input-method-after-insert-chunk-hook nil
|
||||||
"Normal hook run just after an input method insert some chunk of text."
|
"Normal hook run just after an input method insert some chunk of text."
|
||||||
|
|
|
||||||
|
|
@ -540,32 +540,36 @@ non-Quail commands."
|
||||||
(if (and (overlayp quail-conv-overlay) (overlay-start quail-conv-overlay))
|
(if (and (overlayp quail-conv-overlay) (overlay-start quail-conv-overlay))
|
||||||
(delete-overlay quail-conv-overlay)))
|
(delete-overlay quail-conv-overlay)))
|
||||||
|
|
||||||
(defun quail-inactivate ()
|
(defun quail-deactivate ()
|
||||||
"Inactivate Quail input method.
|
"Deactivate Quail input method.
|
||||||
|
|
||||||
This function runs the normal hook `quail-inactivate-hook'."
|
This function runs the normal hook `quail-deactivate-hook'."
|
||||||
(interactive)
|
(interactive)
|
||||||
(quail-activate -1))
|
(quail-activate -1))
|
||||||
|
|
||||||
|
(define-obsolete-function-alias 'quail-inactivate 'quail-deactivate "24.2")
|
||||||
|
|
||||||
(defun quail-activate (&optional arg)
|
(defun quail-activate (&optional arg)
|
||||||
"Activate Quail input method.
|
"Activate Quail input method.
|
||||||
With ARG, activate Quail input method if and only if arg is positive.
|
With ARG, activate Quail input method if and only if arg is positive.
|
||||||
|
|
||||||
This function runs `quail-activate-hook' if it activates the input
|
This function runs `quail-activate-hook' if it activates the input
|
||||||
method, `quail-inactivate-hook' if it deactivates it.
|
method, `quail-deactivate-hook' if it deactivates it.
|
||||||
|
|
||||||
While this input method is active, the variable
|
While this input method is active, the variable
|
||||||
`input-method-function' is bound to the function `quail-input-method'."
|
`input-method-function' is bound to the function `quail-input-method'."
|
||||||
(if (and arg
|
(if (and arg
|
||||||
(< (prefix-numeric-value arg) 0))
|
(< (prefix-numeric-value arg) 0))
|
||||||
;; Let's inactivate Quail input method.
|
;; Let's deactivate Quail input method.
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(progn
|
(progn
|
||||||
(quail-delete-overlays)
|
(quail-delete-overlays)
|
||||||
(setq describe-current-input-method-function nil)
|
(setq describe-current-input-method-function nil)
|
||||||
(quail-hide-guidance)
|
(quail-hide-guidance)
|
||||||
(remove-hook 'post-command-hook 'quail-show-guidance t)
|
(remove-hook 'post-command-hook 'quail-show-guidance t)
|
||||||
(run-hooks 'quail-inactivate-hook))
|
(run-hooks
|
||||||
|
'quail-inactivate-hook ; for backward compatibility
|
||||||
|
'quail-deactivate-hook))
|
||||||
(kill-local-variable 'input-method-function))
|
(kill-local-variable 'input-method-function))
|
||||||
;; Let's activate Quail input method.
|
;; Let's activate Quail input method.
|
||||||
(if (null quail-current-package)
|
(if (null quail-current-package)
|
||||||
|
|
@ -575,7 +579,7 @@ While this input method is active, the variable
|
||||||
(setq name (car (car quail-package-alist)))
|
(setq name (car (car quail-package-alist)))
|
||||||
(error "No Quail package loaded"))
|
(error "No Quail package loaded"))
|
||||||
(quail-select-package name)))
|
(quail-select-package name)))
|
||||||
(setq inactivate-current-input-method-function 'quail-inactivate)
|
(setq deactivate-current-input-method-function 'quail-deactivate)
|
||||||
(setq describe-current-input-method-function 'quail-help)
|
(setq describe-current-input-method-function 'quail-help)
|
||||||
(quail-delete-overlays)
|
(quail-delete-overlays)
|
||||||
(setq quail-guidance-str "")
|
(setq quail-guidance-str "")
|
||||||
|
|
@ -589,8 +593,12 @@ While this input method is active, the variable
|
||||||
(make-local-variable 'input-method-function)
|
(make-local-variable 'input-method-function)
|
||||||
(setq input-method-function 'quail-input-method)))
|
(setq input-method-function 'quail-input-method)))
|
||||||
|
|
||||||
|
(define-obsolete-variable-alias
|
||||||
|
'quail-inactivate-hook
|
||||||
|
'quail-deactivate-hook "24.2")
|
||||||
|
|
||||||
(defun quail-exit-from-minibuffer ()
|
(defun quail-exit-from-minibuffer ()
|
||||||
(inactivate-input-method)
|
(deactivate-input-method)
|
||||||
(if (<= (minibuffer-depth) 1)
|
(if (<= (minibuffer-depth) 1)
|
||||||
(remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)))
|
(remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -390,12 +390,14 @@ A nil value means no package is selected.")
|
||||||
(setq robin-current-package-name name)
|
(setq robin-current-package-name name)
|
||||||
(robin-activate)))
|
(robin-activate)))
|
||||||
|
|
||||||
(defun robin-inactivate ()
|
(defun robin-deactivate ()
|
||||||
"Inactivate robin input method."
|
"Deactivate robin input method."
|
||||||
|
|
||||||
(interactive)
|
(interactive)
|
||||||
(robin-activate -1))
|
(robin-activate -1))
|
||||||
|
|
||||||
|
(define-obsolete-function-alias 'robin-inactivate 'robin-deactivate "24.2")
|
||||||
|
|
||||||
(defun robin-activate (&optional arg)
|
(defun robin-activate (&optional arg)
|
||||||
"Activate robin input method.
|
"Activate robin input method.
|
||||||
|
|
||||||
|
|
@ -406,18 +408,20 @@ While this input method is active, the variable
|
||||||
(if (and arg
|
(if (and arg
|
||||||
(< (prefix-numeric-value arg) 0))
|
(< (prefix-numeric-value arg) 0))
|
||||||
|
|
||||||
;; inactivate robin input method.
|
;; deactivate robin input method.
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(progn
|
(progn
|
||||||
(setq robin-mode nil)
|
(setq robin-mode nil)
|
||||||
(setq describe-current-input-method-function nil)
|
(setq describe-current-input-method-function nil)
|
||||||
(run-hooks 'robin-inactivate-hook))
|
(run-hooks
|
||||||
|
'robin-inactivate-hook ; for backward compatibility
|
||||||
|
'robin-deactivate-hook))
|
||||||
(kill-local-variable 'input-method-function))
|
(kill-local-variable 'input-method-function))
|
||||||
|
|
||||||
;; activate robin input method.
|
;; activate robin input method.
|
||||||
(setq robin-mode t
|
(setq robin-mode t
|
||||||
describe-current-input-method-function 'robin-help
|
describe-current-input-method-function 'robin-help
|
||||||
inactivate-current-input-method-function 'robin-inactivate)
|
deactivate-current-input-method-function 'robin-deactivate)
|
||||||
(if (eq (selected-window) (minibuffer-window))
|
(if (eq (selected-window) (minibuffer-window))
|
||||||
(add-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer))
|
(add-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer))
|
||||||
(run-hooks 'input-method-activate-hook
|
(run-hooks 'input-method-activate-hook
|
||||||
|
|
@ -425,8 +429,12 @@ While this input method is active, the variable
|
||||||
(set (make-local-variable 'input-method-function)
|
(set (make-local-variable 'input-method-function)
|
||||||
'robin-input-method)))
|
'robin-input-method)))
|
||||||
|
|
||||||
|
(define-obsolete-variable-alias
|
||||||
|
'robin-inactivate-hook
|
||||||
|
'robin-deactivate-hook "24.2")
|
||||||
|
|
||||||
(defun robin-exit-from-minibuffer ()
|
(defun robin-exit-from-minibuffer ()
|
||||||
(inactivate-input-method)
|
(deactivate-input-method)
|
||||||
(if (<= (minibuffer-depth) 1)
|
(if (<= (minibuffer-depth) 1)
|
||||||
(remove-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer)))
|
(remove-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
"Turn on or off a Korean text input method for the current buffer."
|
"Turn on or off a Korean text input method for the current buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if current-input-method
|
(if current-input-method
|
||||||
(inactivate-input-method)
|
(deactivate-input-method)
|
||||||
(activate-input-method
|
(activate-input-method
|
||||||
(concat "korean-hangul" default-korean-keyboard))))
|
(concat "korean-hangul" default-korean-keyboard))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -616,7 +616,7 @@ This also saves the value of `send-mail-function' via Customize."
|
||||||
;; (kill-local-variable 'enable-multibyte-characters)
|
;; (kill-local-variable 'enable-multibyte-characters)
|
||||||
(set-buffer-multibyte (default-value 'enable-multibyte-characters))
|
(set-buffer-multibyte (default-value 'enable-multibyte-characters))
|
||||||
(if current-input-method
|
(if current-input-method
|
||||||
(inactivate-input-method))
|
(deactivate-input-method))
|
||||||
|
|
||||||
;; Local variables for Mail mode.
|
;; Local variables for Mail mode.
|
||||||
(setq mail-send-actions actions)
|
(setq mail-send-actions actions)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue