unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs 18 mapping function keys
@ 2002-10-28 19:17 Glynn Smith
  2002-10-28 23:46 ` Kevin Rodgers
  2002-10-29 13:13 ` Kevin Dziulko
  0 siblings, 2 replies; 3+ messages in thread
From: Glynn Smith @ 2002-10-28 19:17 UTC (permalink / raw)


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

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

end of thread, other threads:[~2002-10-29 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 19:17 emacs 18 mapping function keys Glynn Smith
2002-10-28 23:46 ` Kevin Rodgers
2002-10-29 13:13 ` Kevin Dziulko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).