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#15317: 24.3; key-translation-map and universal-argument not working as expected Date: Tue, 10 Sep 2013 13:15:39 -0400 Message-ID: References: <522E7BFE.2090201@arcor.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378833380 26870 80.91.229.3 (10 Sep 2013 17:16:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 17:16:20 +0000 (UTC) Cc: 15317-done@debbugs.gnu.org To: Jan-Christian =?UTF-8?Q?H=C3=BCtter?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 10 19:16:22 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 1VJRY5-0007g1-J4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2013 19:16:21 +0200 Original-Received: from localhost ([::1]:59260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJRY5-0008Bo-5a for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2013 13:16:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJRXu-0008AB-Iu for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 13:16:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJRXn-0002Hx-1X for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 13:16:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJRXm-0002Hr-V4 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 13:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VJRXm-0007hL-Fw for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2013 13:16:02 -0400 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2013 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15317 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15317@debbugs.gnu.org, monnier@IRO.UMontreal.CA, jchtt@arcor.de Original-Received: via spool by 15317-done@debbugs.gnu.org id=D15317.137883334529555 (code D ref 15317); Tue, 10 Sep 2013 17:16:01 +0000 Original-Received: (at 15317-done) by debbugs.gnu.org; 10 Sep 2013 17:15:45 +0000 Original-Received: from localhost ([127.0.0.1]:52974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJRXU-0007gc-DA for submit@debbugs.gnu.org; Tue, 10 Sep 2013 13:15:44 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:33401) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VJRXR-0007gT-VO for 15317-done@debbugs.gnu.org; Tue, 10 Sep 2013 13:15:42 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8AHFegH023308; Tue, 10 Sep 2013 13:15:40 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id E4EE5B40D6; Tue, 10 Sep 2013 13:15:39 -0400 (EDT) In-Reply-To: <522E7BFE.2090201@arcor.de> ("Jan-Christian =?UTF-8?Q?H=C3=BCtter?="'s message of "Mon, 09 Sep 2013 21:55:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4697=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4697> : inlines <79> : streams <1034997> : uri <1532846> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:78182 Archived-At: > In emacs -Q, evaluate the following to swap C-c and C-w > (define-key key-translation-map (kbd "C-c") (kbd "C-w")) > (define-key key-translation-map (kbd "C-w") (kbd "C-c")) > This works as expected, except when combined with the universal argument: If > you use C-u C-c, the first evaluation of C-c is passed as is, and not > interpreted as C-w. However, if I enter C-u C-c C-c, this is interpreted as Actually, it was not passed as-is, it was translated twice, instead. I installed a patch which should fix those problems. Stefan