* Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X)
@ 2011-03-17 10:09 Bastien
2011-03-17 16:48 ` Davis Herring
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2011-03-17 10:09 UTC (permalink / raw)
To: emacs-devel
Dear all,
I have a thinkpad X61 with a Japanese keyboard.
I use this in .xmodmaprc to set the Henkan key to AltGr:
add mod5 = Henkan_Mode
This works in terminal and other X applications, but it
doesn't work in GNU Emacs: pressing the Henkan key says
"<henkan> is undefined".
Any hint on how to fix this (very annoying) problem?
As a workaround, can I use global-set-key to remap the
<henkan> key to the AltGr key?
Thanks a lot in advance,
I'm using latest ArchLinux and GNU Emacs 24.0.50.2
(i686-pc-linux-gnu, GTK+ Version 2.22.1) of 2011-03-16.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X)
2011-03-17 10:09 Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X) Bastien
@ 2011-03-17 16:48 ` Davis Herring
2011-03-19 10:05 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Davis Herring @ 2011-03-17 16:48 UTC (permalink / raw)
To: Bastien; +Cc: emacs-devel
> I use this in .xmodmaprc to set the Henkan key to AltGr:
>
> add mod5 = Henkan_Mode
>
> This works in terminal and other X applications, but it
> doesn't work in GNU Emacs: pressing the Henkan key says
> "<henkan> is undefined".
>
> Any hint on how to fix this (very annoying) problem?
AltGr is known as Mode_switch to X. You need to do
keysym Henkan_Mode = Mode_switch
and then assign that to a modifier.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X)
2011-03-17 16:48 ` Davis Herring
@ 2011-03-19 10:05 ` Bastien
2011-03-20 1:44 ` Daiki Ueno
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2011-03-19 10:05 UTC (permalink / raw)
To: Davis Herring; +Cc: emacs-devel
Hi David,
Davis Herring <herring@lanl.gov> writes:
>> Any hint on how to fix this (very annoying) problem?
>
> AltGr is known as Mode_switch to X. You need to do
>
> keysym Henkan_Mode = Mode_switch
>
> and then assign that to a modifier.
Thanks. But this doesn't solve my problem. To be clear:
rebinding Mod5 to Henkan_Mode with this line in my .xmodmap
add Mod5 = Henkan_Mode
do works everywhere *but* in Emacs. Besides,
keysym Henkan_Mode = Mode_switch
triggers an error here.
Thanks for any further help,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X)
2011-03-19 10:05 ` Bastien
@ 2011-03-20 1:44 ` Daiki Ueno
2011-03-20 10:37 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Daiki Ueno @ 2011-03-20 1:44 UTC (permalink / raw)
To: Bastien; +Cc: emacs-devel
Bastien <bzg@altern.org> writes:
> keysym Henkan_Mode = Mode_switch
>
> triggers an error here.
Try using ISO_Level3_Shift instead of Mode_switch:
xmodmap -e "keysym Henkan_Mode = ISO_Level3_Shift Henkan_Mode"
then I can input "¶" with Henkan+r on Emacs (under French XKB layout).
Regards,
--
Daiki Ueno
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X)
2011-03-20 1:44 ` Daiki Ueno
@ 2011-03-20 10:37 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2011-03-20 10:37 UTC (permalink / raw)
To: Daiki Ueno; +Cc: emacs-devel
Hi Daiki,
Daiki Ueno <ueno@unixuser.org> writes:
> Try using ISO_Level3_Shift instead of Mode_switch:
>
> xmodmap -e "keysym Henkan_Mode = ISO_Level3_Shift Henkan_Mode"
>
> then I can input "¶" with Henkan+r on Emacs (under French XKB layout).
It does indeed solve my problem -- *thanks* a lot for this!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-20 10:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 10:09 Henkan_Mod (<henkan>) undefined in Emacs (AltGr elsewhere in X) Bastien
2011-03-17 16:48 ` Davis Herring
2011-03-19 10:05 ` Bastien
2011-03-20 1:44 ` Daiki Ueno
2011-03-20 10:37 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).