* 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
* Re: emacs 18 mapping function keys
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
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2002-10-28 23:46 UTC (permalink / raw)
Glynn Smith wrote:
> 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 think that's because "\e1" is bound to the `digit-argument' command
and therefore can't be used as a prefix key. Does Emacs 18 define the
`function-key-map' variable?
--
<a href="mailto:<kevinr@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs 18 mapping function keys
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
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Dziulko @ 2002-10-29 13:13 UTC (permalink / raw)
I'm using vt100, but my key code is not ^[11~. You can see the escape
sequence by going into the *scratch* buffer, pressing C-q, then hitting
your F1 key.
On 28 Oct 2002, Glynn Smith wrote:
> 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
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ 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).