Stephen; regarding binding to G keys, unfortunately, nothing is reported in
the echo area by xemacs if I press any of the G keys. As a test, I pressed
other non-G keys, and found that if I press the top-right-most key on my
keyboard, labeled "Pause/Break", xemacs notes in the echo area: "Pause not
defined.". I then mapped the "Pause" <keysym> as follows:
"(global-set-key
[pause] 'translation_all)" and it works! Great. Now I need to know the
<keysym> of the G keys.
Thanks again for the init.el detail; my scripts are much more organized now.
-----Original Message-----
From: xemacs-beta-bounces(a)xemacs.org [mailto:xemacs-beta-bouncesï¼ xemacs.org]
On Behalf Of Stephen J. Turnbull
Sent: Wednesday, November 17, 2010 12:29 AM
To: Sean MacLennan
Cc: xemacs-beta(a)xemacs.org
Subject: Re: binding to G keys
Sean MacLennan writes:
On Tue, 16 Nov 2010 07:31:08 -0500
"Sirano Dhe-Paganon" <sirano.dhepaganon(a)utoronto.ca> wrote:
> Hi Jeff; thanks, but way over my head. I'm using Xemacs-21.4 on
> Windows-7.
If you press a key that XEmacs doesn't understand, it should report
"<keysym> not defined" in the echo area. The keysym that is reported
there can then be bound using define-key (which you are using
correctly, although Sean's version is the more common idiom).
You can see old messages by looking at the buffer named
" *Message-Log*" (the quotation marks are not part of the name, but
the leading space is significant).
> I was hoping something like this in my custom.el file might do
the
> trick "(define-key global-map '(E0_17) 'kill-primary-selection)",
> but ... it doesn't.
If E0_17 is recognized as a keysym, try this:
(global-set-key [E0_17] 'kill-primary-selection)
And if it works, report it as a bug :-). Those two forms should be
equivalent.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta