help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 18 mapping function keys


From: Glynn Smith
Subject: emacs 18 mapping function keys
Date: 28 Oct 2002 11:17:23 -0800

In version 18 of emacs
    (global-set-key (quote [f1]) (quote undo))
produces the followng error:
Wrong type argument: string p, [f1]
This global-set-key command works just fine in version 19 or later.

Using describe-key-briefly for F1 just results in a 11~ written at the
first line first column of the current file being visited.

I believe the vt100 key code for F1 is ESC11~ or ^[11~ so I tried
changing the global-set-key statement to:
    (global-set-key (quote "\e11~") (quote undo))
This produced the following error:
Key sequence ^[11~ uses invalid prefix characters.

I hope someone can help.
Regards


reply via email to

[Prev in Thread] Current Thread [Next in Thread]