From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: global-bind a function key Date: Wed, 20 Feb 2013 10:52:31 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361375589 5442 80.91.229.3 (20 Feb 2013 15:53:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 15:53:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 16:53:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U8Bz2-0000ND-Cn for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 16:53:24 +0100 Original-Received: from localhost ([::1]:46194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8Byi-0000uQ-5v for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 10:53:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ByZ-0000sp-9v for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 10:52:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8ByV-0008Uh-Ei for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 10:52:55 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8ByV-0008UY-7u for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 10:52:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8Byg-00007o-Au for help-gnu-emacs@gnu.org; Wed, 20 Feb 2013 16:53:02 +0100 Original-Received: from 108.161.117.233 ([108.161.117.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Feb 2013 16:53:02 +0100 Original-Received: from monnier by 108.161.117.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Feb 2013 16:53:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108.161.117.233 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:egIXotmB6IgAK87osHeiLTPD8GI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89186 Archived-At: > If I evaluate the above lisp expression I get no errors, but pressing the > F5 key produces the message " is undefined", which is apparently > the default keybinding for F5. No, what it means is that your F5 key does not generate an `f5' event but a `SunOpen' event instead. Maybe you want (define-key function-key-map [SunOpen] [f5]) -- Stefan