From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Travis Spencer" Newsgroups: gmane.emacs.help Subject: Rebinding a key in a local variable Date: Sat, 14 Feb 2004 12:25:13 -0800 Organization: http://extra.newsguy.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1076792751 4403 80.91.224.253 (14 Feb 2004 21:05:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2004 21:05:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 22:05:45 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1As6yv-0002ZF-00 for ; Sat, 14 Feb 2004 22:05:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1As6tz-0003R0-MF for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2004 16:00:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2 Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: p-964.newsdawg.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-Xref: shelby.stanford.edu gnu.emacs.help:120912 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:16861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16861 Hello, I am trying to rebind the tab key in a local variable, but I can't figure out the syntax. I would like the tab key to call the tab-to-tab-stop function, so I don't have to use M-i. Here is what I have at the moment: # Local Variables: # tab-stop-list: (0 4 40) # global-set-key: [tab] tab-to-tab-stop # End: This gives me the error message: File local-variables error: (error "Local variables entry is terminated incorrectly") When I remove the global-set-key variable the error message isn't given. Any help would be *much* appreciated. -- Regards, Travis Spencer Portland, OR. USA