GNU bug report logs -
#28118
25.1; input-method-deactivate-hook works twice because of backward compatibility
Previous Next
Reported by: Рейх Константин <reich-cv <at> yandex.ru>
Date: Thu, 17 Aug 2017 05:20:01 UTC
Severity: normal
Found in version 25.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 28118 <at> debbugs.gnu.org (full text, mbox):
I think the following patch solves the problem.
--- emacs-25.2/lisp/international/mule-cmds.el.orig 2017-02-03 04:25:44.000000000 -0600
+++ emacs-25.2/lisp/international/mule-cmds.el 2017-08-17 22:24:38.750733577 -0500
@@ -1483,7 +1483,6 @@ system (if it corresponds to a MIME char
(funcall deactivate-current-input-method-function))
(unwind-protect
(run-hooks
- 'input-method-inactivate-hook ; for backward compatibility
'input-method-deactivate-hook)
(setq current-input-method nil)
(force-mode-line-update)))))
The problem is that the function deactivate-input-method in the file mule-cmds run two hooks:input-method-inactivate-hook and input-method-deactivate-hook. But they are identical:
(define-obsolete-function-alias
'inactivate-input-method
'deactivate-input-method "24.3")
So one hook should be removed.
This bug report was last modified 7 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.