unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problem with keyboard-translate and mapping of parentheses
@ 2007-10-21 19:10 Josip Gracin
  2007-10-21 19:19 ` Josip Gracin
  0 siblings, 1 reply; 2+ messages in thread
From: Josip Gracin @ 2007-10-21 19:10 UTC (permalink / raw)
  To: help-gnu-emacs

Hello!

I'm using the following translations to swap [ and ] with ( and ) keys.

(keyboard-translate ?\( ?\[)
(keyboard-translate ?\[ ?\()
(keyboard-translate ?\) ?\])
(keyboard-translate ?\] ?\))

It works as expected.  Pressing [ on the keyboard produces (.
However, when I press Meta and [ I don't get the expected M-( but an 
error message saying that M-[ is not unbound.  As if the translation is 
not active when using modifiers.

In XEmacs, this works as expected.  How do I do this in Emacs?  I'm 
using 23.0.60.1, unicode-2 branch, on x86_64, Ubuntu 7.10.

Thanks in advance!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with keyboard-translate and mapping of parentheses
  2007-10-21 19:10 Problem with keyboard-translate and mapping of parentheses Josip Gracin
@ 2007-10-21 19:19 ` Josip Gracin
  0 siblings, 0 replies; 2+ messages in thread
From: Josip Gracin @ 2007-10-21 19:19 UTC (permalink / raw)
  To: help-gnu-emacs

Josip Gracin wrote:
> It works as expected.  Pressing [ on the keyboard produces (.
> However, when I press Meta and [ I don't get the expected M-( but an 
> error message saying that M-[ is not unbound.  As if the translation is 
> not active when using modifiers.

Just a little update... Since I'm using a PC keyboard, I'm actually 
pressing the Alt key.  But, if I press ESC and then [, it works. 
Something to do with Alt not being treated exactly as Meta?

My xmodmap reports:

mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-21 19:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-21 19:10 Problem with keyboard-translate and mapping of parentheses Josip Gracin
2007-10-21 19:19 ` Josip Gracin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).