Summary: | emacs-21.3-r4 incorrectly treats AltGr key when compiled with xorg-x11-6.8.0-r1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Lars Petersen <lpetersen> |
Component: | Current packages | Assignee: | Emacs project <emacs> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | mikhail |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Lars Petersen
2004-10-06 03:38:04 UTC
Sorry, the last part should of course read --------------------------------------------------------------------------- The (possibly) relevant part of /etc/X11/xorg.conf: Section "InputDevice" Identifier "Keyboard1" Driver "kbd" # for xorg-x11-6.7.0-r2 this changes to: # Driver "Keyboard" Option "AutoRepeat" "500 30" Option "XkbOptions" "compose:rwin" Option "XkbModel" "pc105" Option "XkbLayout" "de" Option "XkbVariant" "nodeadkeys" EndSection --------------------------------------------------------------------------- (I pasted this to the wrong place... :-/) I'll be happy to provide more info if required. Thanks for your time! The AltGr key on my italian keyboard showed the following behavior: - entering special characters, like the @ sign with AltGr- The AltGr key on my italian keyboard showed the following behavior: - entering special characters, like the @ sign with AltGr-ò, works ok but beeps; - hitting C-h c AltGr-ò ("describe-key-briefly" macro) will tell you that "<key-3> is undefined". It looks like a known xorg bug. See for example: http://lists.gnu.org/archive/html/bug-gnu-emacs/2004-10/msg00151.html http://freedesktop.org/bugzilla/show_bug.cgi?id=1625 I added the patch suggested by lists.gnu.org to /usr/portage/app-editors/emacs/files: ----- begin file emacs-21.3-xorg.patch ----- diff -Naur emacs-21.3-old/src/xterm.h emacs-21.3/src/xterm.h --- emacs-21.3-old/src/xterm.h 2002-02-22 11:41:44.000000000 +0100 +++ emacs-21.3/src/xterm.h 2004-10-30 12:33:12.000000000 +0200 @@ -21,8 +21,8 @@ #include <X11/Xlib.h> #include <X11/cursorfont.h> -#include <X11/Xutil.h> #include <X11/keysym.h> +#include <X11/Xutil.h> #include <X11/Xatom.h> #include <X11/Xresource.h> ----- end file emacs-21.3-xorg.patch ----- and I've edited emacs-21.3-r3.ebuild: --- emacs-21.3-r3.ebuild.orig 2004-10-19 11:37:39.000000000 +0200 +++ emacs-21.3-r3.ebuild 2004-11-20 09:05:20.000000000 +0100 @@ -50,6 +50,7 @@ epatch ${FILESDIR}/${P}-amd64.patch epatch ${FILESDIR}/${P}-hppa.patch + epatch ${FILESDIR}/${P}-xorg.patch export WANT_AUTOCONF=2.1 autoconf The AltGr key works fine now. Thanks for the pointer to the patch. I added it to CVS as emacs-21.3-r5.ebuild. Please run `emerge --sync` and test if it works or not. Yes, that solved it for me. The AltGr key works as expected now, i.e., with xorg-x11-6.8.0-r3 and emacs-21.3-r5. Thank you very much, Sergio, for tracking down the problem, and Mamoru, for providing the revised ebuild! Yes, xorg-x11-6.8.0-r3 and emacs-21.3-r5 work for me too. Thanks ;-) |