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#13793: 24.3.50; M-x broken in viper and X Date: Sun, 24 Feb 2013 22:55:34 -0500 Message-ID: References: <20130223123501.43568c52@susi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361764603 28787 80.91.229.3 (25 Feb 2013 03:56:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2013 03:56:43 +0000 (UTC) Cc: 13793@debbugs.gnu.org, 13709@debbugs.gnu.org, Michael Kifer To: Frank Fischer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 04:57:06 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U9pBX-0007eq-L4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2013 04:57:03 +0100 Original-Received: from localhost ([::1]:50719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pBC-0004XZ-Rn for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 22:56:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pBA-0004XP-A0 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 22:56:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9pB6-0007zc-VU for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 22:56:40 -0500 Original-Received: from [140.186.70.43] (port=43112 helo=debbugs.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9pB6-0007xu-SN for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 22:56:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9pCW-0002nQ-Ei for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 22:58:04 -0500 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: Mon, 25 Feb 2013 03:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13793-submit@debbugs.gnu.org id=B13793.136176464410692 (code B ref 13793); Mon, 25 Feb 2013 03:58:04 +0000 Original-Received: (at 13793) by debbugs.gnu.org; 25 Feb 2013 03:57:24 +0000 Original-Received: from localhost ([127.0.0.1]:48575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9pBr-0002mK-Ln for submit@debbugs.gnu.org; Sun, 24 Feb 2013 22:57:24 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:18032) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9pBk-0002m2-3y; Sun, 24 Feb 2013 22:57:16 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFHO+KLv/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFHO+KLv/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2277679" Original-Received: from 206-248-162-239.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.162.239]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Feb 2013 22:55:36 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 8DFC6AE2C6; Sun, 24 Feb 2013 22:55:34 -0500 (EST) In-Reply-To: <20130223123501.43568c52@susi> (Frank Fischer's message of "Sat, 23 Feb 2013 12:35:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:71764 Archived-At: > Meta bindings do not work if Emacs is started in X and viper is > enabled. To reproduce, type > emacs -Q > M-x viper RET > M-x > the last command M-x shows 'M-x undefined'. I can reproduce it here, but it's tricky to investigate because of all the various keymap trickery. The thing I noticed is that in emacs-24, `f1 k M-x' also tells me "M-x is undefined" although M-x does work. > As far as I can tell, the reason is viper's trick with the ESC > key. viper binds (kbd "ESC") to a special command call > `viper-intercept-ESC-key`. AFAICT in the GUI case, viper-intercept-ESC-key is not called when you hit M-x (at least that's what trace-function-background told me, both in trunk and in emacs-24). The same commit caused a problem in Evil as well (see bug#13709), and I hope the problem is the same and can be fixed in the same way, but I'm also having trouble figuring out what's happening in that case. If someone familiar with Evil or Viper's keymap tricks could investigate a bit more to try and see where the behavior changes, I can then hopefully see how it relates to my read-key-sequence changes. Stefan