]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't call the same hook twice due to obsolete aliases
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Aug 2017 09:33:08 +0000 (12:33 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 Aug 2017 09:33:08 +0000 (12:33 +0300)
* lisp/international/robin.el (robin-activate):
* lisp/international/quail.el (quail-activate):
* lisp/international/mule-cmds.el (deactivate-input-method):
* lisp/emulation/viper-init.el (viper-deactivate-input-method):
Don't call the same hook twice, when the obsolete and the
advertised symbols are aliased.  (Bug#28118)

lisp/emulation/viper-init.el
lisp/international/mule-cmds.el
lisp/international/quail.el
lisp/international/robin.el

index 0d478011238d12ec629025c15cb07d3d757eeae0..a67dd4d762f3c009cfc311a6ec80b03f35fd1cbe 100644 (file)
@@ -344,9 +344,7 @@ Use `\\[viper-set-expert-level]' to change this.")
             (quail-delete-overlays))
         (setq describe-current-input-method-function nil)
         (setq current-input-method nil)
-        (run-hooks
-         'input-method-inactivate-hook ; for backward compatibility
-         'input-method-deactivate-hook)
+        (run-hooks 'input-method-deactivate-hook)
         (force-mode-line-update))
        ))
 (defun viper-activate-input-method ()
index bcbc92844d6ab5d408977cabb524528707bacded..ee31dea69ec8f0bb3d79a30972baf06f8748b707 100644 (file)
@@ -1482,9 +1482,7 @@ If INPUT-METHOD is nil, deactivate any current input method."
                current-input-method-title nil)
          (funcall deactivate-current-input-method-function))
       (unwind-protect
-         (run-hooks
-          'input-method-inactivate-hook ; for backward compatibility
-          'input-method-deactivate-hook)
+         (run-hooks 'input-method-deactivate-hook)
        (setq current-input-method nil)
        (force-mode-line-update)))))
 
index 036b80eb028ea2073c6ae3669d7966d64352871c..b7f0b156394a0591dca0d009adc1e8abae5f6679 100644 (file)
@@ -569,9 +569,7 @@ While this input method is active, the variable
            (setq describe-current-input-method-function nil)
            (quail-hide-guidance)
            (remove-hook 'post-command-hook 'quail-show-guidance t)
-           (run-hooks
-            'quail-inactivate-hook ; for backward compatibility
-            'quail-deactivate-hook))
+           (run-hooks 'quail-deactivate-hook))
        (kill-local-variable 'input-method-function))
     ;; Let's activate Quail input method.
     (if (null quail-current-package)
index 0ef90b18932d247894887877c2696916f0a7e3ef..077809b6c1fd7654e429c3c239b3969e9319e35e 100644 (file)
@@ -413,9 +413,7 @@ While this input method is active, the variable
          (progn
            (setq robin-mode nil)
            (setq describe-current-input-method-function nil)
-           (run-hooks
-            'robin-inactivate-hook ; for backward compatibility
-            'robin-deactivate-hook))
+           (run-hooks 'robin-deactivate-hook))
        (kill-local-variable 'input-method-function))
 
     ;; activate robin input method.