From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9146: M-x broken in console mode with viper (always gives: "viper bell")) Date: Fri, 04 Nov 2011 18:43:44 -0400 Message-ID: References: <877h7ar3ug.fsf@usha.takhisis.invalid> <20110928072531.GA12901@upsilon.cc> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320446679 26103 80.91.229.12 (4 Nov 2011 22:44:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2011 22:44:39 +0000 (UTC) Cc: 9146@debbugs.gnu.org To: Michael Kifer , Stefano Zacchiroli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 04 23:44:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RMSUy-0005sx-LB for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Nov 2011 23:44:32 +0100 Original-Received: from localhost ([::1]:39347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSUy-0002q3-48 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Nov 2011 18:44:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSUt-0002ok-5U for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2011 18:44:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMSUs-0000qX-3C for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2011 18:44:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSUs-0000qP-1P for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2011 18:44:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RMSXO-0000Mm-Eb for bug-gnu-emacs@gnu.org; Fri, 04 Nov 2011 18:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2011 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9146 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9146-submit@debbugs.gnu.org id=B9146.13204467861315 (code B ref 9146); Fri, 04 Nov 2011 22:47:02 +0000 Original-Received: (at 9146) by debbugs.gnu.org; 4 Nov 2011 22:46:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMSWn-0000L9-9k for submit@debbugs.gnu.org; Fri, 04 Nov 2011 18:46:26 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMSWk-0000L0-8D for 9146@debbugs.gnu.org; Fri, 04 Nov 2011 18:46:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGJptE5MCoYy/2dsb2JhbABEDql3gQaBcgEBBVYjEAs0EhQYDSQBvhiJKwShWYNyUw X-IronPort-AV: E=Sophos;i="4.69,457,1315195200"; d="scan'208";a="146341659" Original-Received: from 76-10-134-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.134.50]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 04 Nov 2011 18:43:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 316A159284; Fri, 4 Nov 2011 18:43:44 -0400 (EDT) In-Reply-To: <20110928072531.GA12901@upsilon.cc> (Stefano Zacchiroli's message of "Wed, 28 Sep 2011 09:25:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 04 Nov 2011 18:47:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53535 Archived-At: OK I can reproduce your problem and have tracked it down to a change of mine in the keymap.c code. The problem is that viper-intercept-ESC-key relies on a quirk of the function key-binding which I fixed in Emacs-24. More specifically, in Emacs-23, the following happened: (local-set-key "\e" 'toto) (key-binding "\ex") => execute-extended-command I.e. key-binding returned a binding that is not actually valid because it's hidden by a shorter key-sequence in a keymap of higher precedence. This has been fixed in Emacs-24 where it now returns nil in this case. In the case of viper-intercept-ESC-key, the problematic keybinding is not in the local-map but in a minor-mode-map installed by Viper and the command is (of course) viper-intercept-ESC-key, but the problem is the same. IOW viper-intercept-ESC-key needs to be changed to call key-binding in a context where Viper's minor-mode map(s) have been temporarily disabled so the ESC binding to viper-intercept-ESC-key doesn't hide the thing we're looking for. Stefan