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: Wed, 27 Feb 2013 14:08:31 -0500 Message-ID: References: <20130223123501.43568c52@susi> <20130225201657.GA10969@susi> <20130226085741.GB31613@bayes.mathematik.tu-chemnitz.de> <20130226145608.GC31613@bayes.mathematik.tu-chemnitz.de> <20130226201714.GD31613@bayes.mathematik.tu-chemnitz.de> <20130227175936.GE31613@bayes.mathematik.tu-chemnitz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361992386 2463 80.91.229.3 (27 Feb 2013 19:13:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 19:13:06 +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 Wed Feb 27 20:13:28 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 1UAmRT-0007f4-CX for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 20:13:27 +0100 Original-Received: from localhost ([::1]:41566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAmR5-0001aG-4R for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 14:13:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAmNb-0004b0-Df for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 14:09:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAmNO-0003Nv-6q for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 14:09:21 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAmNO-0003N7-4b for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 14:09:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UAmP8-0004Fm-LJ for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 14:11:02 -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: Wed, 27 Feb 2013 19:11:02 +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.136199222916304 (code B ref 13793); Wed, 27 Feb 2013 19:11:02 +0000 Original-Received: (at 13793) by debbugs.gnu.org; 27 Feb 2013 19:10:29 +0000 Original-Received: from localhost ([127.0.0.1]:53955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAmOb-0004Er-6s for submit@debbugs.gnu.org; Wed, 27 Feb 2013 14:10:29 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33073) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAmOX-0004Ec-KE; Wed, 27 Feb 2013 14:10:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFpaTU/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFFpaTU/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2626517" Original-Received: from 69-165-164-212.dsl.teksavvy.com (HELO pastel.home) ([69.165.164.212]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 Feb 2013 14:08:31 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 9B9E16CF4A; Wed, 27 Feb 2013 14:08:31 -0500 (EST) In-Reply-To: <20130227175936.GE31613@bayes.mathematik.tu-chemnitz.de> (Frank Fischer's message of "Wed, 27 Feb 2013 18:59:36 +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:71924 Archived-At: >> Sounds good to me. At least, I can't think of a problematic situation, >> currently. Let's how it works in practise. > Ok, now I have problem. The keymap `input-decode-map` is > keyboard-local (according to the documentation). Indeed it is, but that shouldn't be too hard to handle. > This means (and this makes sense because the ESC prefix map in > `input-decode-map` is different for each keyboard) we have to 'patch' > it for each new keyboard. Yes. > Unfortunately, I'm not sure how to do this right. > Currently I use an `after-make-frame-functions` hook and a > `delete-terminal-functions` hook (although the latter may not be > required) to save the original prefix map in the terminal parameter > `evil-esc-map` and change `input-decode-map` accordingly. I hope that > this sets the correct values for each "keyboard". > Is this the correct way to do? Or is it completely wrong ;) That sounds fine. It would be better to use make-terminal-functions, but you'd have to invent that hook first ;-( BTW, you can take advantage of this opportunity to only install this hack on tty terminals. Stefan