From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: global-set-key Date: Mon, 28 Apr 2003 19:15:59 +0100 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051554126 28415 80.91.224.249 (28 Apr 2003 18:22:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 18:22:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 20:22:04 2003 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 19ADGN-0007Nv-00 for ; Mon, 28 Apr 2003 20:22:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ADF4-000844-03 for gnu-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2003 14:20:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk In-Reply-To: (Douglas Harter's message of "Mon, 28 Apr 2003 12:27:45 -0400") X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Cancel-Lock: sha1:OWQ6uuP2D4eT6msm3xiRCIodSoQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:112462 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8959 "Harter, Douglas" wrote: > I would like to reset the meta f10 key using global-set-key. > > I have referred to the manual and none of their examples seems to work. The manual makes sense to me. "Rebinding Function Keys" node: A key sequence which contains function key symbols (or anything but ASCII characters) must be a vector rather than a string. The vector syntax uses spaces between the elements, and square brackets around the whole vector. Thus, to bind function key `f1' to the command `rmail', write the following: (global-set-key [f1] 'rmail) [...] You can use the modifier keys , , , , and with function keys. To represent these modifiers, add the strings `C-', `M-', `H-', `s-', `A-' and `S-' at the front of the symbol name. Thus, here is how to make `Hyper-Meta-' move forward a word: (global-set-key [H-M-right] 'forward-word) Thus, I deduce (global-set-key [M-f10] 'forward-word) and, lo and behold, it works. As an aside, if you want to be XEmacs compatible, you can use (global-set-key [(meta f10)] 'forward-word)