From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glen Stark Newsgroups: gmane.emacs.help Subject: global-bind a function key Date: Wed, 20 Feb 2013 08:29:16 GMT Organization: EasyNews, UseNet made Easy! Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1361357648 23402 80.91.229.3 (20 Feb 2013 10:54:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 10:54:08 +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 11:54:30 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 1U87Jj-00062f-1U for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 11:54:27 +0100 Original-Received: from localhost ([::1]:51953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U87JM-0007pI-I8 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2013 05:54:04 -0500 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-12.dc1.easynews.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Original-Lines: 29 Original-X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. X-Received-Bytes: 1574 Original-Xref: usenet.stanford.edu gnu.emacs.help:196884 X-Mailman-Approved-At: Wed, 20 Feb 2013 05:53:55 -0500 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:89175 Archived-At: Hi. I feel like this should be really simple but I'm having a hard time anyway. I'm using emacs 24.2.1 Following the instructions here: http://www.delorie.com/gnu/docs/emacs/ emacs_497.html I have the following line in my .emacs file: (global-set-key [f5] 'convert-include-type) (convert-include-type is a function of my own definition). 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. If I run "global-set-key, f5, convert-include-type" from the minibuffer, everything works as expected. I tried a couple other syntaxes for keybinding an f5 key that I found on the web, but so far I have had no luck. Can someone help me out? Thanks, Glen