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

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

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.