all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.