all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* AltGr in command key sequence not working
@ 2005-03-14 23:27 Sebastian Schubert
  2005-03-15  0:20 ` Ulrich Hobelmann
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Schubert @ 2005-03-14 23:27 UTC (permalink / raw)


Hi,

I use a self-compiled Emacs 21.4.1 on a Suse 9.2 system under X. I have to
push e.g. AltGr-8 to get [ (German keyboard). Just entering that works fine
but I can't use any command sequence including a symbol I can only get with
AltGr. C-h k AltGr gives me "<key-3> is undefined".

What can I do?

Thanks
Sebastian

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

* Re: AltGr in command key sequence not working
  2005-03-14 23:27 AltGr in command key sequence not working Sebastian Schubert
@ 2005-03-15  0:20 ` Ulrich Hobelmann
  2005-03-15 12:56   ` Sebastian Schubert
  0 siblings, 1 reply; 5+ messages in thread
From: Ulrich Hobelmann @ 2005-03-15  0:20 UTC (permalink / raw)


Sebastian Schubert wrote:
> Hi,
> 
> I use a self-compiled Emacs 21.4.1 on a Suse 9.2 system under X. I have to
> push e.g. AltGr-8 to get [ (German keyboard). Just entering that works fine
> but I can't use any command sequence including a symbol I can only get with
> AltGr. C-h k AltGr gives me "<key-3> is undefined".

Get a decent keyboard layout, like US -- or better -- Dvorak. The German 
one IS a bug. ;)

Viele Grüße, Ulrich (der erst nach USA, dann nach Dvorak geswitcht hat)

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

* Re: AltGr in command key sequence not working
  2005-03-15  0:20 ` Ulrich Hobelmann
@ 2005-03-15 12:56   ` Sebastian Schubert
  2005-03-15 22:09     ` Peter Dyballa
       [not found]     ` <mailman.3941.1110925534.32256.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastian Schubert @ 2005-03-15 12:56 UTC (permalink / raw)


Ulrich Hobelmann wrote:
 
>> I use a self-compiled Emacs 21.4.1 on a Suse 9.2 system under X. I have
>> to push e.g. AltGr-8 to get [ (German keyboard). Just entering that works
>> fine but I can't use any command sequence including a symbol I can only
>> get with AltGr. C-h k AltGr gives me "<key-3> is undefined".
> 
> Get a decent keyboard layout, like US -- or better -- Dvorak. The German
> one IS a bug. ;)

Ok, but that's rather a workaround then a solution. I somehow like WYSIWYG
keyboards. Emacs is so old, there should be a way to solve that problem.

Or isn't it a problem of emacs? I found that on
http://lists.gnu.org/archive/html/bug-gnu-emacs/2004-10/msg00150.html

 If Emacs (nearly all version from last years) is compiled with xorg-x11
 and it is used with European keyboard with AltGr key, pressing AltGr
 beeps and breaks i-searches.
 
 Bug is not in Emacs, but in X:
 http://freedesktop.org/bugzilla/show_bug.cgi?id=1625
 
 But Emacs can include simple work-around:
 
 --- src/xterm.h 2004-07-03 16:06:51.000000000 +0200
 +++ src/xterm.h 2004-10-13 21:33:35.281822816 +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>

What does it mean? Somehow change src/xterm.h, I guess.

Thanks
Sebastian

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

* Re: AltGr in command key sequence not working
  2005-03-15 12:56   ` Sebastian Schubert
@ 2005-03-15 22:09     ` Peter Dyballa
       [not found]     ` <mailman.3941.1110925534.32256.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2005-03-15 22:09 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 15.03.2005 um 13:56 schrieb Sebastian Schubert:

>  --- src/xterm.h 2004-07-03 16:06:51.000000000 +0200
>  +++ src/xterm.h 2004-10-13 21:33:35.281822816 +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>
>
> What does it mean? Somehow change src/xterm.h, I guess.

It means to move the line with <X11/Xutil.h> from its original position 
before keysym.h to the new position after keysym.h, in 
emacs/src/xterm.h. Xutil.h seems to make some valuable changes and 
introduce valuable macros, but these obviously need some preparation 
from keysym.h -- or keysym.h is destroying the "values" which were 
introduced by Xutil.h ...

Here is an excerpt from emacs/src/xterm.h from CVS:

	#include <X11/Xlib.h>
	#include <X11/cursorfont.h>
	
	/* Include Xutil.h after keysym.h to work around a bug that prevents
	   correct recognition of AltGr key in some X versions.  */
	
	#include <X11/keysym.h>
	#include <X11/Xutil.h>


So we should recommend to use a pretty modern GNU Emacs, one from last 
few months, GNU Emacs 21.4?  This might be correct for X11, but what 
with those unhappy few with MS what thing?

--
Mit reisefreudigen Grüßen

   Pete

Wer nicht weiß, wo er oder sie hin will, muss sich nicht wundern, wenn 
er oder sie nicht ankommt... (Mark Twain)

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

* Re: AltGr in command key sequence not working
       [not found]     ` <mailman.3941.1110925534.32256.help-gnu-emacs@gnu.org>
@ 2005-03-16  9:45       ` Sebastian Schubert
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Schubert @ 2005-03-16  9:45 UTC (permalink / raw)


Peter Dyballa wrote:

> 
[..]
>>
>> What does it mean? Somehow change src/xterm.h, I guess.
> 
> It means to move the line with <X11/Xutil.h> from its original position
> before keysym.h to the new position after keysym.h, in
> emacs/src/xterm.h. Xutil.h seems to make some valuable changes and
> introduce valuable macros, but these obviously need some preparation
> from keysym.h -- or keysym.h is destroying the "values" which were
> introduced by Xutil.h ...

It works! Thanks!


> Here is an excerpt from emacs/src/xterm.h from CVS:
> 
> #include <X11/Xlib.h>
> #include <X11/cursorfont.h>
> 
> /* Include Xutil.h after keysym.h to work around a bug that prevents
> correct recognition of AltGr key in some X versions.  */
> 
> #include <X11/keysym.h>
> #include <X11/Xutil.h>
> 
> 
> So we should recommend to use a pretty modern GNU Emacs, one from last
> few months, GNU Emacs 21.4?

This one does not include the fix, just mentioning this small fix somewhere
easy to find would be nice. Most of the recent Linux distributions use
X.org AFAIK.

Thanks!
Sebastian

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

end of thread, other threads:[~2005-03-16  9:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14 23:27 AltGr in command key sequence not working Sebastian Schubert
2005-03-15  0:20 ` Ulrich Hobelmann
2005-03-15 12:56   ` Sebastian Schubert
2005-03-15 22:09     ` Peter Dyballa
     [not found]     ` <mailman.3941.1110925534.32256.help-gnu-emacs@gnu.org>
2005-03-16  9:45       ` Sebastian Schubert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.