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

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

Re: emacs 18 mapping function keys


From: Kevin Rodgers
Subject: Re: emacs 18 mapping function keys
Date: Mon, 28 Oct 2002 16:46:41 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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:&lt;kevinr&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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