diff options
| author | Paul Eggert | 2012-07-29 00:16:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-29 00:16:45 -0700 |
| commit | 72b255c7e7856eb0abefb1149211a8be519f6fef (patch) | |
| tree | 29dcf155832dc040f3b0b21a64d88fe311c5c967 | |
| parent | 2549c068e14ab1ddfb1f1ea38ca7736c16db7296 (diff) | |
| download | emacs-72b255c7e7856eb0abefb1149211a8be519f6fef.tar.gz emacs-72b255c7e7856eb0abefb1149211a8be519f6fef.zip | |
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.
| -rw-r--r-- | doc/lispref/hooks.texi | 2 | ||||
| -rw-r--r-- | etc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/NEWS | 29 | ||||
| -rw-r--r-- | leim/ChangeLog | 8 | ||||
| -rw-r--r-- | leim/quail/hangul.el | 10 | ||||
| -rw-r--r-- | leim/quail/uni-input.el | 10 | ||||
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/emulation/viper-init.el | 14 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 10 | ||||
| -rw-r--r-- | lisp/follow.el | 4 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 41 | ||||
| -rw-r--r-- | lisp/international/quail.el | 24 | ||||
| -rw-r--r-- | lisp/international/robin.el | 20 | ||||
| -rw-r--r-- | lisp/language/korea-util.el | 2 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 2 |
15 files changed, 150 insertions, 53 deletions
diff --git a/doc/lispref/hooks.texi b/doc/lispref/hooks.texi index 28888e37165..7c91b51b290 100644 --- a/doc/lispref/hooks.texi +++ b/doc/lispref/hooks.texi | |||
| @@ -243,10 +243,10 @@ completion-annotate-function | |||
| 243 | completion-at-point-functions | 243 | completion-at-point-functions |
| 244 | completion-in-region-functions | 244 | completion-in-region-functions |
| 245 | completion-list-insert-choice-function | 245 | completion-list-insert-choice-function |
| 246 | deactivate-current-input-method-function | ||
| 246 | describe-current-input-method-function | 247 | describe-current-input-method-function |
| 247 | filter-buffer-substring-functions | 248 | filter-buffer-substring-functions |
| 248 | font-lock-function | 249 | font-lock-function |
| 249 | inactivate-current-input-method-function | ||
| 250 | menu-bar-select-buffer-function | 250 | menu-bar-select-buffer-function |
| 251 | read-file-name-function | 251 | read-file-name-function |
| 252 | replace-re-search-function | 252 | replace-re-search-function |
diff --git a/etc/ChangeLog b/etc/ChangeLog index 5fea1e1ea46..410332037d0 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150) | ||
| 4 | * NEWS: Document these changes. | ||
| 5 | |||
| 1 | 2012-07-28 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-07-28 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * NEWS: Fix typo. | 8 | * NEWS: Fix typo. |
| @@ -499,6 +499,35 @@ third argument is a frame (that usage was obsolete since Emacs 22.2). | |||
| 499 | but keywords or keyword-string pairs. The old argument list will | 499 | but keywords or keyword-string pairs. The old argument list will |
| 500 | still be supported for Emacs 24.x. | 500 | still be supported for Emacs 24.x. |
| 501 | 501 | ||
| 502 | ** Spelling changes. | ||
| 503 | Some Lisp symbols have been renamed to avoid problems with spelling | ||
| 504 | that is incorrect or inconsistent with how Emacs normally spells a word. | ||
| 505 | |||
| 506 | *** Renamed functions | ||
| 507 | |||
| 508 | **** hangul-input-method-inactivate -> hangul-input-method-deactivate | ||
| 509 | **** inactivate-input-method -> deactivate-input-method | ||
| 510 | **** quail-inactivate -> quail-deactivate | ||
| 511 | **** robin-inactivate -> robin-deactivate | ||
| 512 | **** viper-inactivate-input-method -> viper-deactivate-input-method | ||
| 513 | **** viper-inactivate-input-method-action -> | ||
| 514 | viper-deactivate-input-method-action | ||
| 515 | **** ucs-input-inactivate -> ucs-input-deactivate | ||
| 516 | |||
| 517 | *** Renamed hooks | ||
| 518 | The old hooks are still supported for backward compatibility, but they | ||
| 519 | are deprecated and will be removed eventually. | ||
| 520 | |||
| 521 | **** input-method-inactivate-hook -> input-method-deactivate-hook | ||
| 522 | **** robin-inactivate-hook -> robin-deactivate-hook | ||
| 523 | **** quail-inactivate-hook -> quail-deactivate-hook | ||
| 524 | |||
| 525 | *** Renamed Lisp variables | ||
| 526 | |||
| 527 | **** follow-deactive-menu -> follow-inactive-menu | ||
| 528 | **** inactivate-current-input-method-function -> | ||
| 529 | deactivate-current-input-method-function | ||
| 530 | |||
| 502 | ** The following obsolete variables and varaliases have been removed: | 531 | ** The following obsolete variables and varaliases have been removed: |
| 503 | 532 | ||
| 504 | *** `facemenu-unlisted-faces' | 533 | *** `facemenu-unlisted-faces' |
diff --git a/leim/ChangeLog b/leim/ChangeLog index f3acaebec94..fbe656c037c 100644 --- a/leim/ChangeLog +++ b/leim/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150) | ||
| 4 | * quail/uni-input.el (ucs-input-deactivate): | ||
| 5 | Rename from ucs-input-inactivate. | ||
| 6 | * quail/hangul.el (hangul-input-method-deactivate): | ||
| 7 | Rename from hangul-input-method-inactivate. | ||
| 8 | |||
| 1 | 2012-07-10 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2012-07-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * quail/ipa.el: Use cl-lib. | 11 | * quail/ipa.el: Use cl-lib. |
diff --git a/leim/quail/hangul.el b/leim/quail/hangul.el index d30957ae7e6..c66c47b47fc 100644 --- a/leim/quail/hangul.el +++ b/leim/quail/hangul.el | |||
| @@ -512,7 +512,7 @@ When a Korean input method is off, convert the following hangul character." | |||
| 512 | "Activate Hangul input method INPUT-METHOD. | 512 | "Activate Hangul input method INPUT-METHOD. |
| 513 | FUNC is a function to handle input key. | 513 | FUNC is a function to handle input key. |
| 514 | HELP-TEXT is a text set in `hangul-input-method-help-text'." | 514 | HELP-TEXT is a text set in `hangul-input-method-help-text'." |
| 515 | (setq inactivate-current-input-method-function 'hangul-input-method-inactivate | 515 | (setq deactivate-current-input-method-function 'hangul-input-method-deactivate |
| 516 | describe-current-input-method-function 'hangul-input-method-help | 516 | describe-current-input-method-function 'hangul-input-method-help |
| 517 | hangul-input-method-help-text help-text) | 517 | hangul-input-method-help-text help-text) |
| 518 | (quail-delete-overlays) | 518 | (quail-delete-overlays) |
| @@ -520,8 +520,8 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'." | |||
| 520 | (add-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)) | 520 | (add-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer)) |
| 521 | (set (make-local-variable 'input-method-function) func)) | 521 | (set (make-local-variable 'input-method-function) func)) |
| 522 | 522 | ||
| 523 | (defun hangul-input-method-inactivate () | 523 | (defun hangul-input-method-deactivate () |
| 524 | "Inactivate the current Hangul input method." | 524 | "Deactivate the current Hangul input method." |
| 525 | (interactive) | 525 | (interactive) |
| 526 | (unwind-protect | 526 | (unwind-protect |
| 527 | (progn | 527 | (progn |
| @@ -530,6 +530,10 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'." | |||
| 530 | (setq describe-current-input-method-function nil)) | 530 | (setq describe-current-input-method-function nil)) |
| 531 | (kill-local-variable 'input-method-function))) | 531 | (kill-local-variable 'input-method-function))) |
| 532 | 532 | ||
| 533 | (define-obsolete-function-alias | ||
| 534 | 'hangul-input-method-inactivate | ||
| 535 | 'hangul-input-method-deactivate "24.2") | ||
| 536 | |||
| 533 | (defun hangul-input-method-help () | 537 | (defun hangul-input-method-help () |
| 534 | "Describe the current Hangul input method." | 538 | "Describe the current Hangul input method." |
| 535 | (interactive) | 539 | (interactive) |
diff --git a/leim/quail/uni-input.el b/leim/quail/uni-input.el index 8d0e28d15a4..1cab31f83bb 100644 --- a/leim/quail/uni-input.el +++ b/leim/quail/uni-input.el | |||
| @@ -99,7 +99,7 @@ While this input method is active, the variable | |||
| 99 | (quail-delete-overlays) | 99 | (quail-delete-overlays) |
| 100 | (setq describe-current-input-method-function nil)) | 100 | (setq describe-current-input-method-function nil)) |
| 101 | (kill-local-variable 'input-method-function)) | 101 | (kill-local-variable 'input-method-function)) |
| 102 | (setq inactivate-current-input-method-function 'ucs-input-inactivate) | 102 | (setq deactivate-current-input-method-function 'ucs-input-deactivate) |
| 103 | (setq describe-current-input-method-function 'ucs-input-help) | 103 | (setq describe-current-input-method-function 'ucs-input-help) |
| 104 | (quail-delete-overlays) | 104 | (quail-delete-overlays) |
| 105 | (if (eq (selected-window) (minibuffer-window)) | 105 | (if (eq (selected-window) (minibuffer-window)) |
| @@ -107,11 +107,15 @@ While this input method is active, the variable | |||
| 107 | (set (make-local-variable 'input-method-function) | 107 | (set (make-local-variable 'input-method-function) |
| 108 | 'ucs-input-method))) | 108 | 'ucs-input-method))) |
| 109 | 109 | ||
| 110 | (defun ucs-input-inactivate () | 110 | (defun ucs-input-deactivate () |
| 111 | "Inactivate UCS input method." | 111 | "Deactivate UCS input method." |
| 112 | (interactive) | 112 | (interactive) |
| 113 | (ucs-input-activate -1)) | 113 | (ucs-input-activate -1)) |
| 114 | 114 | ||
| 115 | (define-obsolete-function-alias | ||
| 116 | 'ucs-input-inactivate | ||
| 117 | 'ucs-input-deactivate "24.2") | ||
| 118 | |||
| 115 | (defun ucs-input-help () | 119 | (defun ucs-input-help () |
| 116 | (interactive) | 120 | (interactive) |
| 117 | (with-output-to-temp-buffer "*Help*" | 121 | (with-output-to-temp-buffer "*Help*" |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2d737a38f69..fc96da8a0e3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2012-07-29 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | deactive->inactive, inactivate->deactivate spelling fixes (Bug#10150) | ||
| 4 | * emulation/viper-init.el (viper-deactivate-input-method-action): | ||
| 5 | Rename from viper-inactivate-input-method-action. | ||
| 6 | (viper-deactivate-input-method): | ||
| 7 | Rename from viper-inactivate-input-method. | ||
| 8 | * follow.el (follow-inactive-menu): Rename from follow-deactive-menu. | ||
| 9 | * international/mule-cmds.el (deactivate-input-method): | ||
| 10 | Rename from inactivate-input-method. | ||
| 11 | Also run input-method-deactivate-hook. | ||
| 12 | (deactivate-current-input-method-function): | ||
| 13 | Rename from inactivate-current-input-method-function. | ||
| 14 | (input-method-deactivate-hook): New hook. | ||
| 15 | (input-method-inactivate-hook): Mark obsolete. | ||
| 16 | * international/quail.el (quail-activate): | ||
| 17 | Also run quail-deactivate-hook. | ||
| 18 | (quail-deactivate): Rename from quail-inactivate. | ||
| 19 | * international/robin.el (robin-activate): | ||
| 20 | Also run robin-deactivate-hook. | ||
| 21 | (robin-deactivate): Rename from robin-inactivate. | ||
| 22 | |||
| 1 | 2012-07-29 Chong Yidong <cyd@gnu.org> | 23 | 2012-07-29 Chong Yidong <cyd@gnu.org> |
| 2 | 24 | ||
| 3 | * simple.el (indicate-copied-region): New function. | 25 | * simple.el (indicate-copied-region): New function. |
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el index 76a8c410676..9f0826bf515 100644 --- a/lisp/emulation/viper-init.el +++ b/lisp/emulation/viper-init.el | |||
| @@ -316,7 +316,7 @@ Use `M-x viper-set-expert-level' to change this.") | |||
| 316 | )) | 316 | )) |
| 317 | 317 | ||
| 318 | ;; viper hook to run on input-method deactivation | 318 | ;; viper hook to run on input-method deactivation |
| 319 | (defun viper-inactivate-input-method-action () | 319 | (defun viper-deactivate-input-method-action () |
| 320 | (if (null viper-mule-hook-flag) | 320 | (if (null viper-mule-hook-flag) |
| 321 | () | 321 | () |
| 322 | (setq viper-special-input-method nil) | 322 | (setq viper-special-input-method nil) |
| @@ -328,9 +328,9 @@ Use `M-x viper-set-expert-level' to change this.") | |||
| 328 | (or current-input-method default-input-method)) | 328 | (or current-input-method default-input-method)) |
| 329 | ""))))) | 329 | ""))))) |
| 330 | 330 | ||
| 331 | (defun viper-inactivate-input-method () | 331 | (defun viper-deactivate-input-method () |
| 332 | (cond ((and (featurep 'emacs) (fboundp 'inactivate-input-method)) | 332 | (cond ((and (featurep 'emacs) (fboundp 'deactivate-input-method)) |
| 333 | (inactivate-input-method)) | 333 | (deactivate-input-method)) |
| 334 | ((and (featurep 'xemacs) (boundp 'current-input-method)) | 334 | ((and (featurep 'xemacs) (boundp 'current-input-method)) |
| 335 | ;; XEmacs had broken quail-mode for some time, so we are working around | 335 | ;; XEmacs had broken quail-mode for some time, so we are working around |
| 336 | ;; it here | 336 | ;; it here |
| @@ -339,7 +339,9 @@ Use `M-x viper-set-expert-level' to change this.") | |||
| 339 | (quail-delete-overlays)) | 339 | (quail-delete-overlays)) |
| 340 | (setq describe-current-input-method-function nil) | 340 | (setq describe-current-input-method-function nil) |
| 341 | (setq current-input-method nil) | 341 | (setq current-input-method nil) |
| 342 | (run-hooks 'input-method-inactivate-hook) | 342 | (run-hooks |
| 343 | 'input-method-inactivate-hook ; for backward compatibility | ||
| 344 | 'input-method-deactivate-hook) | ||
| 343 | (force-mode-line-update)) | 345 | (force-mode-line-update)) |
| 344 | )) | 346 | )) |
| 345 | (defun viper-activate-input-method () | 347 | (defun viper-activate-input-method () |
| @@ -356,7 +358,7 @@ Use `M-x viper-set-expert-level' to change this.") | |||
| 356 | ;; activate input method | 358 | ;; activate input method |
| 357 | (viper-activate-input-method)) | 359 | (viper-activate-input-method)) |
| 358 | (t ; deactivate input method | 360 | (t ; deactivate input method |
| 359 | (viper-inactivate-input-method))) | 361 | (viper-deactivate-input-method))) |
| 360 | )) | 362 | )) |
| 361 | 363 | ||
| 362 | 364 | ||
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 4219688a4ba..81fbfb0394c 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -971,9 +971,9 @@ It also can't undo some Viper settings." | |||
| 971 | (if (featurep 'emacs) | 971 | (if (featurep 'emacs) |
| 972 | (eval-after-load "mule-cmds" | 972 | (eval-after-load "mule-cmds" |
| 973 | '(progn | 973 | '(progn |
| 974 | (defadvice inactivate-input-method (after viper-mule-advice activate) | 974 | (defadvice deactivate-input-method (after viper-mule-advice activate) |
| 975 | "Set viper-special-input-method to disable intl. input methods." | 975 | "Set viper-special-input-method to disable intl. input methods." |
| 976 | (viper-inactivate-input-method-action)) | 976 | (viper-deactivate-input-method-action)) |
| 977 | (defadvice activate-input-method (after viper-mule-advice activate) | 977 | (defadvice activate-input-method (after viper-mule-advice activate) |
| 978 | "Set viper-special-input-method to enable intl. input methods." | 978 | "Set viper-special-input-method to enable intl. input methods." |
| 979 | (viper-activate-input-method-action)) | 979 | (viper-activate-input-method-action)) |
| @@ -985,14 +985,14 @@ It also can't undo some Viper settings." | |||
| 985 | '(progn | 985 | '(progn |
| 986 | (add-hook 'input-method-activate-hook | 986 | (add-hook 'input-method-activate-hook |
| 987 | 'viper-activate-input-method-action t) | 987 | 'viper-activate-input-method-action t) |
| 988 | (add-hook 'input-method-inactivate-hook | 988 | (add-hook 'input-method-deactivate-hook |
| 989 | 'viper-inactivate-input-method-action t))) | 989 | 'viper-deactivate-input-method-action t))) |
| 990 | ) | 990 | ) |
| 991 | (eval-after-load "mule-cmds" | 991 | (eval-after-load "mule-cmds" |
| 992 | '(defadvice toggle-input-method (around viper-mule-advice activate) | 992 | '(defadvice toggle-input-method (around viper-mule-advice activate) |
| 993 | "Adjust input-method toggling in vi-state." | 993 | "Adjust input-method toggling in vi-state." |
| 994 | (if (and viper-special-input-method (eq viper-current-state 'vi-state)) | 994 | (if (and viper-special-input-method (eq viper-current-state 'vi-state)) |
| 995 | (viper-inactivate-input-method) | 995 | (viper-deactivate-input-method) |
| 996 | ad-do-it))) | 996 | ad-do-it))) |
| 997 | 997 | ||
| 998 | ) ; viper-set-hooks | 998 | ) ; viper-set-hooks |
diff --git a/lisp/follow.el b/lisp/follow.el index 0dea1917f85..a74862cb5d0 100644 --- a/lisp/follow.el +++ b/lisp/follow.el | |||
| @@ -334,8 +334,8 @@ property `follow-mode-use-cache' to non-nil.") | |||
| 334 | (defvar follow-active-menu nil | 334 | (defvar follow-active-menu nil |
| 335 | "The menu visible when Follow mode is active.") | 335 | "The menu visible when Follow mode is active.") |
| 336 | 336 | ||
| 337 | (defvar follow-deactive-menu nil | 337 | (defvar follow-inactive-menu nil |
| 338 | "The menu visible when Follow mode is deactivated.") | 338 | "The menu visible when Follow mode is inactive.") |
| 339 | 339 | ||
| 340 | (defvar follow-inside-post-command-hook nil | 340 | (defvar follow-inside-post-command-hook nil |
| 341 | "Non-nil when inside Follow modes `post-command-hook'. | 341 | "Non-nil when inside Follow modes `post-command-hook'. |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index b122721c96e..5a3f7246f9c 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -92,7 +92,7 @@ | |||
| 92 | (bindings--define-key map [set-keyboard-coding-system] | 92 | (bindings--define-key map [set-keyboard-coding-system] |
| 93 | '(menu-item "For Keyboard" set-keyboard-coding-system | 93 | '(menu-item "For Keyboard" set-keyboard-coding-system |
| 94 | :help "How to decode keyboard input")) | 94 | :help "How to decode keyboard input")) |
| 95 | 95 | ||
| 96 | (bindings--define-key map [separator-2] menu-bar-separator) | 96 | (bindings--define-key map [separator-2] menu-bar-separator) |
| 97 | (bindings--define-key map [set-file-name-coding-system] | 97 | (bindings--define-key map [set-file-name-coding-system] |
| 98 | '(menu-item "For File Name" set-file-name-coding-system | 98 | '(menu-item "For File Name" set-file-name-coding-system |
| @@ -128,7 +128,7 @@ | |||
| 128 | `(menu-item "Describe Language Environment" | 128 | `(menu-item "Describe Language Environment" |
| 129 | ,describe-language-environment-map | 129 | ,describe-language-environment-map |
| 130 | :help "Show multilingual settings for a specific language")) | 130 | :help "Show multilingual settings for a specific language")) |
| 131 | 131 | ||
| 132 | (bindings--define-key map [separator-coding-system] menu-bar-separator) | 132 | (bindings--define-key map [separator-coding-system] menu-bar-separator) |
| 133 | (bindings--define-key map [view-hello-file] | 133 | (bindings--define-key map [view-hello-file] |
| 134 | '(menu-item "Show Multilingual Sample Text" view-hello-file | 134 | '(menu-item "Show Multilingual Sample Text" view-hello-file |
| @@ -1331,15 +1331,15 @@ of `history-length', which see.") | |||
| 1331 | (make-variable-buffer-local 'input-method-history) | 1331 | (make-variable-buffer-local 'input-method-history) |
| 1332 | (put 'input-method-history 'permanent-local t) | 1332 | (put 'input-method-history 'permanent-local t) |
| 1333 | 1333 | ||
| 1334 | (defvar inactivate-current-input-method-function nil | 1334 | (defvar deactivate-current-input-method-function nil |
| 1335 | "Function to call for inactivating the current input method. | 1335 | "Function to call for deactivating the current input method. |
| 1336 | Every input method should set this to an appropriate value when activated. | 1336 | Every input method should set this to an appropriate value when activated. |
| 1337 | This function is called with no argument. | 1337 | This function is called with no argument. |
| 1338 | 1338 | ||
| 1339 | This function should never change the value of `current-input-method'. | 1339 | This function should never change the value of `current-input-method'. |
| 1340 | It is set to nil by the function `inactivate-input-method'.") | 1340 | It is set to nil by the function `deactivate-input-method'.") |
| 1341 | (make-variable-buffer-local 'inactivate-current-input-method-function) | 1341 | (make-variable-buffer-local 'deactivate-current-input-method-function) |
| 1342 | (put 'inactivate-current-input-method-function 'permanent-local t) | 1342 | (put 'deactivate-current-input-method-function 'permanent-local t) |
| 1343 | 1343 | ||
| 1344 | (defvar describe-current-input-method-function nil | 1344 | (defvar describe-current-input-method-function nil |
| 1345 | "Function to call for describing the current input method. | 1345 | "Function to call for describing the current input method. |
| @@ -1426,7 +1426,7 @@ If INPUT-METHOD is nil, deactivate any current input method." | |||
| 1426 | (setq input-method (symbol-name input-method))) | 1426 | (setq input-method (symbol-name input-method))) |
| 1427 | (if (and current-input-method | 1427 | (if (and current-input-method |
| 1428 | (not (string= current-input-method input-method))) | 1428 | (not (string= current-input-method input-method))) |
| 1429 | (inactivate-input-method)) | 1429 | (deactivate-input-method)) |
| 1430 | (unless (or current-input-method (null input-method)) | 1430 | (unless (or current-input-method (null input-method)) |
| 1431 | (let ((slot (assoc input-method input-method-alist))) | 1431 | (let ((slot (assoc input-method input-method-alist))) |
| 1432 | (if (null slot) | 1432 | (if (null slot) |
| @@ -1447,7 +1447,7 @@ If INPUT-METHOD is nil, deactivate any current input method." | |||
| 1447 | (run-hooks 'input-method-activate-hook) | 1447 | (run-hooks 'input-method-activate-hook) |
| 1448 | (force-mode-line-update))))) | 1448 | (force-mode-line-update))))) |
| 1449 | 1449 | ||
| 1450 | (defun inactivate-input-method () | 1450 | (defun deactivate-input-method () |
| 1451 | "Turn off the current input method." | 1451 | "Turn off the current input method." |
| 1452 | (when current-input-method | 1452 | (when current-input-method |
| 1453 | (if input-method-history | 1453 | (if input-method-history |
| @@ -1460,9 +1460,11 @@ If INPUT-METHOD is nil, deactivate any current input method." | |||
| 1460 | (progn | 1460 | (progn |
| 1461 | (setq input-method-function nil | 1461 | (setq input-method-function nil |
| 1462 | current-input-method-title nil) | 1462 | current-input-method-title nil) |
| 1463 | (funcall inactivate-current-input-method-function)) | 1463 | (funcall deactivate-current-input-method-function)) |
| 1464 | (unwind-protect | 1464 | (unwind-protect |
| 1465 | (run-hooks 'input-method-inactivate-hook) | 1465 | (run-hooks |
| 1466 | 'input-method-inactivate-hook ; for backward compatibility | ||
| 1467 | 'input-method-deactivate-hook) | ||
| 1466 | (setq current-input-method nil) | 1468 | (setq current-input-method nil) |
| 1467 | (force-mode-line-update))))) | 1469 | (force-mode-line-update))))) |
| 1468 | 1470 | ||
| @@ -1476,7 +1478,7 @@ When called interactively, the optional arg INTERACTIVE is non-nil, | |||
| 1476 | which marks the variable `default-input-method' as set for Custom buffers. | 1478 | which marks the variable `default-input-method' as set for Custom buffers. |
| 1477 | 1479 | ||
| 1478 | To deactivate the input method interactively, use \\[toggle-input-method]. | 1480 | To deactivate the input method interactively, use \\[toggle-input-method]. |
| 1479 | To deactivate it programmatically, use `inactivate-input-method'." | 1481 | To deactivate it programmatically, use `deactivate-input-method'." |
| 1480 | (interactive | 1482 | (interactive |
| 1481 | (let* ((default (or (car input-method-history) default-input-method))) | 1483 | (let* ((default (or (car input-method-history) default-input-method))) |
| 1482 | (list (read-input-method-name | 1484 | (list (read-input-method-name |
| @@ -1513,7 +1515,7 @@ which marks the variable `default-input-method' as set for Custom buffers." | |||
| 1513 | (if toggle-input-method-active | 1515 | (if toggle-input-method-active |
| 1514 | (error "Recursive use of `toggle-input-method'")) | 1516 | (error "Recursive use of `toggle-input-method'")) |
| 1515 | (if (and current-input-method (not arg)) | 1517 | (if (and current-input-method (not arg)) |
| 1516 | (inactivate-input-method) | 1518 | (deactivate-input-method) |
| 1517 | (let ((toggle-input-method-active t) | 1519 | (let ((toggle-input-method-active t) |
| 1518 | (default (or (car input-method-history) default-input-method))) | 1520 | (default (or (car input-method-history) default-input-method))) |
| 1519 | (if (and arg default (equal current-input-method default) | 1521 | (if (and arg default (equal current-input-method default) |
| @@ -1640,13 +1642,18 @@ just activated." | |||
| 1640 | :type 'hook | 1642 | :type 'hook |
| 1641 | :group 'mule) | 1643 | :group 'mule) |
| 1642 | 1644 | ||
| 1643 | (defcustom input-method-inactivate-hook nil | 1645 | (define-obsolete-variable-alias |
| 1644 | "Normal hook run just after an input method is inactivated. | 1646 | 'input-method-inactivate-hook |
| 1647 | 'input-method-deactivate-hook "24.2") | ||
| 1648 | |||
| 1649 | (defcustom input-method-deactivate-hook nil | ||
| 1650 | "Normal hook run just after an input method is deactivated. | ||
| 1645 | 1651 | ||
| 1646 | The variable `current-input-method' still keeps the input method name | 1652 | The variable `current-input-method' still keeps the input method name |
| 1647 | just inactivated." | 1653 | just deactivated." |
| 1648 | :type 'hook | 1654 | :type 'hook |
| 1649 | :group 'mule) | 1655 | :group 'mule |
| 1656 | :version "24.2") | ||
| 1650 | 1657 | ||
| 1651 | (defcustom input-method-after-insert-chunk-hook nil | 1658 | (defcustom input-method-after-insert-chunk-hook nil |
| 1652 | "Normal hook run just after an input method insert some chunk of text." | 1659 | "Normal hook run just after an input method insert some chunk of text." |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index fecc9427731..65ef807c238 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -540,32 +540,36 @@ non-Quail commands." | |||
| 540 | (if (and (overlayp quail-conv-overlay) (overlay-start quail-conv-overlay)) | 540 | (if (and (overlayp quail-conv-overlay) (overlay-start quail-conv-overlay)) |
| 541 | (delete-overlay quail-conv-overlay))) | 541 | (delete-overlay quail-conv-overlay))) |
| 542 | 542 | ||
| 543 | (defun quail-inactivate () | 543 | (defun quail-deactivate () |
| 544 | "Inactivate Quail input method. | 544 | "Deactivate Quail input method. |
| 545 | 545 | ||
| 546 | This function runs the normal hook `quail-inactivate-hook'." | 546 | This function runs the normal hook `quail-deactivate-hook'." |
| 547 | (interactive) | 547 | (interactive) |
| 548 | (quail-activate -1)) | 548 | (quail-activate -1)) |
| 549 | 549 | ||
| 550 | (define-obsolete-function-alias 'quail-inactivate 'quail-deactivate "24.2") | ||
| 551 | |||
| 550 | (defun quail-activate (&optional arg) | 552 | (defun quail-activate (&optional arg) |
| 551 | "Activate Quail input method. | 553 | "Activate Quail input method. |
| 552 | With ARG, activate Quail input method if and only if arg is positive. | 554 | With ARG, activate Quail input method if and only if arg is positive. |
| 553 | 555 | ||
| 554 | This function runs `quail-activate-hook' if it activates the input | 556 | This function runs `quail-activate-hook' if it activates the input |
| 555 | method, `quail-inactivate-hook' if it deactivates it. | 557 | method, `quail-deactivate-hook' if it deactivates it. |
| 556 | 558 | ||
| 557 | While this input method is active, the variable | 559 | While this input method is active, the variable |
| 558 | `input-method-function' is bound to the function `quail-input-method'." | 560 | `input-method-function' is bound to the function `quail-input-method'." |
| 559 | (if (and arg | 561 | (if (and arg |
| 560 | (< (prefix-numeric-value arg) 0)) | 562 | (< (prefix-numeric-value arg) 0)) |
| 561 | ;; Let's inactivate Quail input method. | 563 | ;; Let's deactivate Quail input method. |
| 562 | (unwind-protect | 564 | (unwind-protect |
| 563 | (progn | 565 | (progn |
| 564 | (quail-delete-overlays) | 566 | (quail-delete-overlays) |
| 565 | (setq describe-current-input-method-function nil) | 567 | (setq describe-current-input-method-function nil) |
| 566 | (quail-hide-guidance) | 568 | (quail-hide-guidance) |
| 567 | (remove-hook 'post-command-hook 'quail-show-guidance t) | 569 | (remove-hook 'post-command-hook 'quail-show-guidance t) |
| 568 | (run-hooks 'quail-inactivate-hook)) | 570 | (run-hooks |
| 571 | 'quail-inactivate-hook ; for backward compatibility | ||
| 572 | 'quail-deactivate-hook)) | ||
| 569 | (kill-local-variable 'input-method-function)) | 573 | (kill-local-variable 'input-method-function)) |
| 570 | ;; Let's activate Quail input method. | 574 | ;; Let's activate Quail input method. |
| 571 | (if (null quail-current-package) | 575 | (if (null quail-current-package) |
| @@ -575,7 +579,7 @@ While this input method is active, the variable | |||
| 575 | (setq name (car (car quail-package-alist))) | 579 | (setq name (car (car quail-package-alist))) |
| 576 | (error "No Quail package loaded")) | 580 | (error "No Quail package loaded")) |
| 577 | (quail-select-package name))) | 581 | (quail-select-package name))) |
| 578 | (setq inactivate-current-input-method-function 'quail-inactivate) | 582 | (setq deactivate-current-input-method-function 'quail-deactivate) |
| 579 | (setq describe-current-input-method-function 'quail-help) | 583 | (setq describe-current-input-method-function 'quail-help) |
| 580 | (quail-delete-overlays) | 584 | (quail-delete-overlays) |
| 581 | (setq quail-guidance-str "") | 585 | (setq quail-guidance-str "") |
| @@ -589,8 +593,12 @@ While this input method is active, the variable | |||
| 589 | (make-local-variable 'input-method-function) | 593 | (make-local-variable 'input-method-function) |
| 590 | (setq input-method-function 'quail-input-method))) | 594 | (setq input-method-function 'quail-input-method))) |
| 591 | 595 | ||
| 596 | (define-obsolete-variable-alias | ||
| 597 | 'quail-inactivate-hook | ||
| 598 | 'quail-deactivate-hook "24.2") | ||
| 599 | |||
| 592 | (defun quail-exit-from-minibuffer () | 600 | (defun quail-exit-from-minibuffer () |
| 593 | (inactivate-input-method) | 601 | (deactivate-input-method) |
| 594 | (if (<= (minibuffer-depth) 1) | 602 | (if (<= (minibuffer-depth) 1) |
| 595 | (remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer))) | 603 | (remove-hook 'minibuffer-exit-hook 'quail-exit-from-minibuffer))) |
| 596 | 604 | ||
diff --git a/lisp/international/robin.el b/lisp/international/robin.el index 73a06bb2ccd..fee4c330e6e 100644 --- a/lisp/international/robin.el +++ b/lisp/international/robin.el | |||
| @@ -390,12 +390,14 @@ A nil value means no package is selected.") | |||
| 390 | (setq robin-current-package-name name) | 390 | (setq robin-current-package-name name) |
| 391 | (robin-activate))) | 391 | (robin-activate))) |
| 392 | 392 | ||
| 393 | (defun robin-inactivate () | 393 | (defun robin-deactivate () |
| 394 | "Inactivate robin input method." | 394 | "Deactivate robin input method." |
| 395 | 395 | ||
| 396 | (interactive) | 396 | (interactive) |
| 397 | (robin-activate -1)) | 397 | (robin-activate -1)) |
| 398 | 398 | ||
| 399 | (define-obsolete-function-alias 'robin-inactivate 'robin-deactivate "24.2") | ||
| 400 | |||
| 399 | (defun robin-activate (&optional arg) | 401 | (defun robin-activate (&optional arg) |
| 400 | "Activate robin input method. | 402 | "Activate robin input method. |
| 401 | 403 | ||
| @@ -406,18 +408,20 @@ While this input method is active, the variable | |||
| 406 | (if (and arg | 408 | (if (and arg |
| 407 | (< (prefix-numeric-value arg) 0)) | 409 | (< (prefix-numeric-value arg) 0)) |
| 408 | 410 | ||
| 409 | ;; inactivate robin input method. | 411 | ;; deactivate robin input method. |
| 410 | (unwind-protect | 412 | (unwind-protect |
| 411 | (progn | 413 | (progn |
| 412 | (setq robin-mode nil) | 414 | (setq robin-mode nil) |
| 413 | (setq describe-current-input-method-function nil) | 415 | (setq describe-current-input-method-function nil) |
| 414 | (run-hooks 'robin-inactivate-hook)) | 416 | (run-hooks |
| 417 | 'robin-inactivate-hook ; for backward compatibility | ||
| 418 | 'robin-deactivate-hook)) | ||
| 415 | (kill-local-variable 'input-method-function)) | 419 | (kill-local-variable 'input-method-function)) |
| 416 | 420 | ||
| 417 | ;; activate robin input method. | 421 | ;; activate robin input method. |
| 418 | (setq robin-mode t | 422 | (setq robin-mode t |
| 419 | describe-current-input-method-function 'robin-help | 423 | describe-current-input-method-function 'robin-help |
| 420 | inactivate-current-input-method-function 'robin-inactivate) | 424 | deactivate-current-input-method-function 'robin-deactivate) |
| 421 | (if (eq (selected-window) (minibuffer-window)) | 425 | (if (eq (selected-window) (minibuffer-window)) |
| 422 | (add-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer)) | 426 | (add-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer)) |
| 423 | (run-hooks 'input-method-activate-hook | 427 | (run-hooks 'input-method-activate-hook |
| @@ -425,8 +429,12 @@ While this input method is active, the variable | |||
| 425 | (set (make-local-variable 'input-method-function) | 429 | (set (make-local-variable 'input-method-function) |
| 426 | 'robin-input-method))) | 430 | 'robin-input-method))) |
| 427 | 431 | ||
| 432 | (define-obsolete-variable-alias | ||
| 433 | 'robin-inactivate-hook | ||
| 434 | 'robin-deactivate-hook "24.2") | ||
| 435 | |||
| 428 | (defun robin-exit-from-minibuffer () | 436 | (defun robin-exit-from-minibuffer () |
| 429 | (inactivate-input-method) | 437 | (deactivate-input-method) |
| 430 | (if (<= (minibuffer-depth) 1) | 438 | (if (<= (minibuffer-depth) 1) |
| 431 | (remove-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer))) | 439 | (remove-hook 'minibuffer-exit-hook 'robin-exit-from-minibuffer))) |
| 432 | 440 | ||
diff --git a/lisp/language/korea-util.el b/lisp/language/korea-util.el index ee8ebb7b2e7..abd5b29ba6e 100644 --- a/lisp/language/korea-util.el +++ b/lisp/language/korea-util.el | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | "Turn on or off a Korean text input method for the current buffer." | 41 | "Turn on or off a Korean text input method for the current buffer." |
| 42 | (interactive) | 42 | (interactive) |
| 43 | (if current-input-method | 43 | (if current-input-method |
| 44 | (inactivate-input-method) | 44 | (deactivate-input-method) |
| 45 | (activate-input-method | 45 | (activate-input-method |
| 46 | (concat "korean-hangul" default-korean-keyboard)))) | 46 | (concat "korean-hangul" default-korean-keyboard)))) |
| 47 | 47 | ||
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 3b262e3fb53..b75841489c9 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -616,7 +616,7 @@ This also saves the value of `send-mail-function' via Customize." | |||
| 616 | ;; (kill-local-variable 'enable-multibyte-characters) | 616 | ;; (kill-local-variable 'enable-multibyte-characters) |
| 617 | (set-buffer-multibyte (default-value 'enable-multibyte-characters)) | 617 | (set-buffer-multibyte (default-value 'enable-multibyte-characters)) |
| 618 | (if current-input-method | 618 | (if current-input-method |
| 619 | (inactivate-input-method)) | 619 | (deactivate-input-method)) |
| 620 | 620 | ||
| 621 | ;; Local variables for Mail mode. | 621 | ;; Local variables for Mail mode. |
| 622 | (setq mail-send-actions actions) | 622 | (setq mail-send-actions actions) |