From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.bugs Subject: bug#8237: keyboard translate occasionally fails Date: Sun, 13 Mar 2011 11:02:34 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51b195142e950049e546d17 X-Trace: dough.gmane.org 1299985634 9472 80.91.229.12 (13 Mar 2011 03:07:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 03:07:14 +0000 (UTC) To: 8237@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 04:07:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pybe7-0005fm-JR for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2011 04:07:08 +0100 Original-Received: from localhost ([127.0.0.1]:55834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pybe4-0000l1-AO for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Mar 2011 22:07:04 -0500 Original-Received: from [140.186.70.92] (port=58820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pybdz-0000ie-E5 for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:07:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pybdy-0008Ou-Al for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:06:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pybdy-0008Oq-62 for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:06:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PybaA-0003w9-9M; Sat, 12 Mar 2011 22:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Le Wang Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2011 03:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8237 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.129998536615108 (code B ref -1); Sun, 13 Mar 2011 03:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Mar 2011 03:02:46 +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 1PybZu-0003vd-Ac for submit@debbugs.gnu.org; Sat, 12 Mar 2011 22:02:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PybZr-0003vR-Nf for submit@debbugs.gnu.org; Sat, 12 Mar 2011 22:02:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PybZl-00084F-PJ for submit@debbugs.gnu.org; Sat, 12 Mar 2011 22:02:38 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:54144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PybZl-00084B-Mk for submit@debbugs.gnu.org; Sat, 12 Mar 2011 22:02:37 -0500 Original-Received: from [140.186.70.92] (port=55219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PybZk-0007CB-BI for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:02:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PybZj-000841-B7 for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:02:36 -0500 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:52915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PybZj-00083v-6i for bug-gnu-emacs@gnu.org; Sat, 12 Mar 2011 22:02:35 -0500 Original-Received: by vxk12 with SMTP id 12so605299vxk.0 for ; Sat, 12 Mar 2011 19:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=odJRGmXtFWj8i5Alip+z/nqc9F7eU71nAXfRwnObNpw=; b=FNBlJpqMyBlhp4vWYNehNSfCqAOdr+QgkOGUCF5VuWSsoiW7wjFMSnGgvV95gAnPBo k+CYlSTvioO7fuJ52eiN8NPbp34TR50O9q+hMQlAT2YGPdDD4hFjd7zgiTyDFh7HKayI C1MHj/713cQEhVYr+rhmCyfDHJFolmJBO87Gg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Zcm4Xv9Is9/26vn8rLLOsF6rHSqFyjzR/X5NTlfuLNi+hr0CgxfRtSmsuaO0CgaFfO FzwBGtjlcFckrDo9NtEuByUmggh7qWeQkMt3WG9oRaNWK7kdsE5zQuvX6eVaSCXyx9Yy WlVp2Cck2VodiWtZ/Bw9urLgnsZ8P/2s0UI0M= Original-Received: by 10.52.174.38 with SMTP id bp6mr5660296vdc.90.1299985354385; Sat, 12 Mar 2011 19:02:34 -0800 (PST) Original-Received: by 10.52.158.193 with HTTP; Sat, 12 Mar 2011 19:02:34 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Mar 2011 22:03:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44960 Archived-At: --bcaec51b195142e950049e546d17 Content-Type: text/plain; charset=ISO-8859-1 I have the following lines in my .emacs.el to swap C-j and C-x: (keyboard-translate ?\C-x ?\C-j) (keyboard-translate ?\C-j ?\C-x) This works fine a vast majority of the time. However, occasionally when I swap back to Emacs from another program, if my first input to Emacs is C-j, it still registers as C-j, instead C-x. I can do a C-_ to undo, and C-j again, and it's back to C-x. I've only noticed this occasionally with Emacs 23.2.1 and Jan 2011 build of CVS Emacs on Windows Vista. It does repro even with emacs -Q, although usually I have my .emacs.el loaded. I'll update this bug as I get more consistent repro. -- Le --bcaec51b195142e950049e546d17 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have the following lines in my .emacs.el to swap C-j and C-x:

(keyboard-translate ?\C-x ?\C-j)
(keyboard= -translate ?\C-j ?\C-x)

This works fine a vast majority of the= time.=A0 However, occasionally when I swap back to Emacs from another prog= ram, if my first input to Emacs is C-j, it still registers as C-j, instead = C-x.

I can do a C-_ to undo, and C-j again, and it's back to C-x.=A0 I&#= 39;ve only noticed this occasionally with Emacs 23.2.1 and Jan 2011 build o= f CVS Emacs on Windows Vista.=A0 It does repro even with emacs -Q, although= usually I have my .emacs.el loaded.=A0 I'll update this bug as I get m= ore consistent repro.

--
Le
--bcaec51b195142e950049e546d17--