From: Brian McCauley (mccauleyba@vms1.bham.ac.uk)
Date: 08/09/93


From: mccauleyba@vms1.bham.ac.uk (Brian McCauley)
Subject: Re: Emacs keybindings not working under X
Date: 9 Aug 1993 18:07:25 GMT

In article <245o2t$chd@nz12.rz.uni-karlsruhe.de>, "Gerd Klesse" <LH04@IBM3090.RZ.UNI-KARLSRUHE.DE> writes:
> Since I have no access to comp.emacs or something like that, I put
> this question here. Perhaps someone can help me with this.
Good job yo mentioned that or I'd have given you a good flaming.

> When I run emacs-19.16 under X1.3, and try to figure out which
> code stays behind the function keys, (using Ctrl-q and the function
> key, i.e.'Ctrl-q F1'), I get the error message
> 'non-character input-event' in the minibuffer.
> What went wrong?

As the message says, F1 does not produce a charater sequence. Emacs
recognises the X events directly.

> Additionally, the Meta key is not working.
Hmm.. never seen that one.

> And one more question: How can I make emacs to recognize
> keybindings with 'shift f1' or only with 'f1' in the startup file

(global-set-key (quote [S-f1]) (quote apropos))
(global-set-key (quote [f1]) (quote info))

> ..emacs. I put lines like '(global-set-key 'f1 'somecommand)'
> in it, but this produces only an error message.
You missed out the square brackets.

> From using DOS editors, I'm used to key combinations like
> 'shift f1' or 'ctrl f1' or 'ctrl cursor key'. How can I
> use such key sequences under emacs?

As above.
>
> I have read the newest FAQ and the emacs Manual and can't find
> an answer to this question.

BTW the way I worked out the above was to define the key interactively
using M-x global-set-key then dissect what had just happened by
hitting C-x M-ESC.

-- 
    \\   ( )   No Bullshit!   | Email: B.A.McCauley@bham.ac.uk
 .  _\\__[oo       from       | Voice: +44 21 471 3789 (home)
.__/  \\ /\@  /~)  /~[   /\/[ |        +44 21 627 2171 (work)
.  l___\\    /~~) /~~[  /   [ |   Fax: +44 21 627 2175 (work)
 # ll  l\\  ~~~~ ~   ~ ~    ~ | Snail: 197 Harborne Lane, B29 6SS, UK
###LL  LL\\ (Brian McCauley)  |  ICBM: 52.5N 1.9W