all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#28118: 25.1; input-method-deactivate-hook works twice because of backward compatibility
@ 2017-08-17  4:07 Рейх Константин
  2017-08-18  3:36 ` Konstantin Reich
  0 siblings, 1 reply; 3+ messages in thread
From: Рейх Константин @ 2017-08-17  4:07 UTC (permalink / raw)
  To: 28118

Hi,

I noticed that when i add hook to input-method-deactivate-hook i also
add hook to input-method-inactivate-hook. As a result  the hook in
input-method-deactivate-hook works twice, which should not be the case.

This can be seen from the code in function deactivate-input-method in international/mule-cmds.el:
....
 (run-hooks
	   'input-method-inactivate-hook ; for backward compatibility
	   'input-method-deactivate-hook)
.....

For example
(add-hook 'input-method-deactivate-hook '(lambda () (message
"b") ))

produces "b [2 times]" with deactivation of the input method. 


All version of emacs from 24.3 are affected.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-18  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17  4:07 bug#28118: 25.1; input-method-deactivate-hook works twice because of backward compatibility Рейх Константин
2017-08-18  3:36 ` Konstantin Reich
2017-08-18  9:34   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.