help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: swapping C-x and C-j reliably for ergonomic reasons


From: Aaron Culich
Subject: Re: swapping C-x and C-j reliably for ergonomic reasons
Date: Wed, 23 Feb 2011 07:14:00 -0800



On Tue, Feb 22, 2011 at 7:49 AM, Le Wang <l26wang@gmail.com> wrote:
On Mon, Feb 21, 2011 at 12:25 AM, Aaron Culich <aculich@gmail.com> wrote:
> (keyboard-translate ?\C-x ?\C-j)
> (keyboard-translate ?\C-j ?\C-x)

The keyboard-translate command doesn't do quite what you expect of it

I'm not sure what you mean by this.  It works like a champ most of the time.  My issue is that C-j registers as the original binding occasionally.  It gets fixed right away without me doing anything, i.e. C-j registers as C-j, then C-_C-j registers as C-x.

It seems I messed something up the first time I tried evaling your keyboard-translate code. When I tried it again just now it worked, so I don't know what I did wrong before. I'm not sure why the C-j sometimes registers incorrectly and then fixes itself, but if you can consistently reproduce the problem, then I would suggest checking the value of keyboard-translate-table to see if it is getting changed in some way. Maybe in some situations it gets made into a buffer-local variable and set to nil? At least that could be one reasonable explanation.

-Aaron
 
 
--
Le


reply via email to

[Prev in Thread] Current Thread [Next in Thread]