From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: emacs 18 mapping function keys Date: Mon, 28 Oct 2002 16:46:41 -0700 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3DBDCC61.2030309@ihs.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035849143 614 80.91.224.249 (28 Oct 2002 23:52:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2002 23:52:23 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186JgD-00009m-00 for ; Tue, 29 Oct 2002 00:52:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186JfS-000131-00; Mon, 28 Oct 2002 18:51:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1035848799 2579906 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:106469 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3019 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? -- Kevin Rodgers