From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: keybinding not working Date: Thu, 01 Jul 2004 01:20:20 -0400 Organization: Looking for work Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1088659422 11131 80.91.224.253 (1 Jul 2004 05:23:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2004 05:23:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 07:23:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bfu2n-0006gs-00 for ; Thu, 01 Jul 2004 07:23:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bfu4X-0006JN-DI for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2004 01:25:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!nntp.giganews.com.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 01 Jul 2004 00:20:20 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) X-Copies-To: never Original-Lines: 26 Original-NNTP-Posting-Host: 24.128.26.140 Original-X-Trace: sv3-CIzIIVqVbm1goyypD652Dfb+BpVGhiQTICPVrMwThuBT1+DUVbufCa6NBSkVMyaPzrmFt5yinxhy+6c!t/iqTPQcRMOCjm4U1O9bJwpH4qItb3R0VXVMYWHlNitisZz4C1e1ac52OF9BYTIctN9Zu+v/tGk7!xmp6+6dpzMU= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:124054 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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:19387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19387 In article , Charles Harrison Caudill wrote: > I have a keybinding in my .emacs file to toggle a fold when I'm on one for > use with folding mode. When I use folding mode in conjunction with matlab > mode, something seems to clobber that keybinding. When I explicitly run > M-x global-set-key C-M-a folding-toggle-show-hide it *still* doesn't work. > > Thanks in advance guys! > > From .emacs: > > ;; Folding Mode > (global-set-key "\C-\M-a" 'folding-toggle-show-hide) Global keybindings can be shadowed by local keybindings. So I suspect that matlab-mode has a local keybinding for this sequence, and it takes precedence. In fact, I think most language modes bind C-M-a -- it's commonly used to go to the beginning of the current function or procedure. If you want to override this in a particular mode, you'll need to use a mode hook that removes the local binding. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***