From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=D0=A0=D0=B5=D0=B9=D1=85_?= =?UTF-8?Q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8=D0=BD?= Newsgroups: gmane.emacs.bugs Subject: bug#28118: 25.1; input-method-deactivate-hook works twice because of backward compatibility Date: Thu, 17 Aug 2017 07:07:44 +0300 Message-ID: <162771502942864@web2j.yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1502947220 17126 195.159.176.226 (17 Aug 2017 05:20:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 17 Aug 2017 05:20:20 +0000 (UTC) To: 28118@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 17 07:20:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diDE3-0003lK-Fk for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Aug 2017 07:20:11 +0200 Original-Received: from localhost ([::1]:60000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diDE6-0007cI-PX for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Aug 2017 01:20:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diDDy-0007Zt-9z for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 01:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diDDu-0002z0-Bo for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 01:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diDDu-0002xj-5t for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 01:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1diDDt-0007dE-Pt for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 01:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=A0=D0=B5=D0=B9=D1=85_?= =?UTF-8?Q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8=D0=BD?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Aug 2017 05:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28118 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150294714229260 (code B ref -1); Thu, 17 Aug 2017 05:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Aug 2017 05:19:02 +0000 Original-Received: from localhost ([127.0.0.1]:41853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diDCv-0007bs-Sg for submit@debbugs.gnu.org; Thu, 17 Aug 2017 01:19:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diC6F-0005sE-9s for submit@debbugs.gnu.org; Thu, 17 Aug 2017 00:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diC69-0002Jc-50 for submit@debbugs.gnu.org; Thu, 17 Aug 2017 00:07:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diC69-0002JX-1P for submit@debbugs.gnu.org; Thu, 17 Aug 2017 00:07:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diC67-00088l-Va for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 00:07:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diC62-0002Gv-NR for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 00:07:55 -0400 Original-Received: from forward102p.mail.yandex.net ([77.88.28.102]:60158) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1diC62-0002FT-Cd for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2017 00:07:50 -0400 Original-Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 83F834304BE9 for ; Thu, 17 Aug 2017 07:07:45 +0300 (MSK) Original-Received: from web2j.yandex.ru (web2j.yandex.ru [5.45.198.43]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uoLppMaQf8-7iimsoM9; Thu, 17 Aug 2017 07:07:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1502942865; bh=1FIYn51h9Mhhv2fXRZT4SAhnOwwZMjxoDYSJgrDT7S4=; h=From:To:Subject:Message-Id:Date; b=CfYtgOwMz/JpV5XpT+j8kc5U41wVjktgoCtq4CYC0bgW7JNxkVZiOydxrEU3H5zNa yvRe12hhfXngQN+2WZuXLgCuo5Wv/QfjdTpxB6mshPw/4i12kiqLLW7FlQztoEu4F7 V8BC/zi7Y/S4uOxfiRd54nXqlh4/yHDzodSUOQDY= Authentication-Results: mxback4j.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by web2j.yandex.ru with HTTP; Thu, 17 Aug 2017 07:07:44 +0300 Envelope-From: reich-cv@yandex.ru X-Mailer: Yamail [ http://yandex.ru ] 5.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 17 Aug 2017 01:19:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135858 Archived-At: 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.