| Summary: | MicroEmacs incorrectly produces a C-c key when pressing AltGr | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Matti P. T. Juvonen <gentoo> |
| Component: | Current packages | Assignee: | Emacs project <emacs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Modified ebuild to incorporate the patch
My proposed patch. Works for me. |
||
|
Description
Matti P. T. Juvonen
2005-02-10 15:42:44 UTC
I'm using app-editors/jasspa-microemacs-20040301 with X.org 6.8.1 and a Finnish keyboard layout.
The Finnish layout, like some others, use the AltGr key to enter some special characters including @£${[\]}. X.org maps AltGr to ISO_Level3_Shift instead of the traditional Mode_switch. MicroEmacs is programmed to specifically ignore Mode_switch but doesn't know about ISO_Level3_Shift.
Reproducible: Always
Steps to Reproduce:
1. Switch the keyboard layout to fi with setxkbmap -layout fi
2. Start up MicroEmacs
3. Press AltGr + any number (for example, AltGr + 2 which should produce @)
Actual Results:
As soon as AltGr is pressed, the minibuffer shows "C-c". When the second
character is pressed, a "Key not bound" error appears.
Expected Results:
MicroEmacs should not react to the AltGr key, and should produce the correct
characters upon pressing the second key.
The following patch restores correct functionality:
--- me040301-old/src/unixterm.c 2004-03-27 17:02:05.000000000 +0000
+++ me040301/src/unixterm.c 2005-02-10 23:35:40.265849484 +0000
@@ -1745,6 +1745,9 @@
/* Mode switch - used on foreign keyboards, always ignore. */
/* Character set switch */
+#ifdef XK_ISO_Level3_Shift
+ case XK_ISO_Level3_Shift:
+#endif
#ifdef XK_Mode_switch
case XK_Mode_switch:
#ifdef XK_script_switch
please attach patches, do not inline. thanks. :) Created attachment 50966 [details]
Modified ebuild to incorporate the patch
Created attachment 50967 [details, diff]
My proposed patch. Works for me.
Thanks for the patch and ebuild. Applied as -r1. |