GNU bug report logs - #15317
24.3; key-translation-map and universal-argument not working as expected

Previous Next

Package: emacs;

Reported by: Jan-Christian Hütter <jchtt <at> arcor.de>

Date: Tue, 10 Sep 2013 01:59:01 UTC

Severity: normal

Found in version 24.3

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 15317-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Jan-Christian Hütter <jchtt <at> arcor.de>
Cc: 15317-done <at> debbugs.gnu.org
Subject: Re: bug#15317: 24.3;
 key-translation-map and universal-argument not working as expected
Date: Tue, 10 Sep 2013 13:15:39 -0400
> 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




This bug report was last modified 11 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.