From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Dufair Newsgroups: gmane.emacs.help Subject: Re: expand/collapse{} in c++ Date: Fri, 26 Aug 2005 17:00:16 -0500 Organization: The Dufair Family Message-ID: <7quhddcicjz.fsf@1078-ARIBA-004.central.purdue.lcl> References: <87y86s2zl5.fsf@wash.edu> <87fyswfniv.fsf@wash.edu> Reply-To: jase@dufair.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125093780 27289 80.91.229.2 (26 Aug 2005 22:03:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2005 22:03:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 27 00:02:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8mGY-0007ed-Ew for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Aug 2005 00:01:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8mKV-0002fC-9z for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Aug 2005 18:05:43 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!news.purdue.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: dyn-167-091.admin.purdue.edu Original-X-Trace: mailhub227.itcs.purdue.edu 1125093616 1948 128.210.167.91 (26 Aug 2005 22:00:16 GMT) Original-X-Complaints-To: news@purdue.edu Original-NNTP-Posting-Date: Fri, 26 Aug 2005 22:00:16 +0000 (UTC) X-Face: %qYO(9,]2*s~3N%\J,B=XT(z}[XaISI2%wB~6pjlDD?eDZgn\^S9jx[j1db/7E{umgx.GyN'wf/*4}lk3h9(h:[)d(?<[7~#x+zbn495h?E[>\HVwW|jGgLW9x^k\Kn,uc4{?-T'/=EW!/nE'e_Jf5pP3|DVn$ydYOr]n6Dk7!Ojgt{%(P.$j}u; EyrN{YVPxVc+EWeo?,I*PnW$; U%{@Lqh-OU`o2 User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.2 (cygwin) Cancel-Lock: sha1:+uyI3dFuM2mRy73jiNIKC7KOcHs= Original-Xref: shelby.stanford.edu gnu.emacs.help:133487 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29022 Archived-At: Baloff writes: > in a .emacs-c++ file to be loaded from inside .emacs, I have > (local-set-key [f4] "\C-c @ \C-c") ;toggles block hide/show > > restart emacs, when I open .cpp file, f4 does nothing. First, the 2nd argument to 'local-set-key should be a function definition, not another set of key bindings. Use C-h k to see what function "C-c@C-c" calls and use that function name as your second argument. Also, local-set-key only works on the current local keymap. If you only want that binding available in c++-mode, you probably have set the binding in the mode hook -- Jason Dufair - jase@dufair.org http://www.dufair.org/ ***The above does not represent the views of my employer(s), except for the bit about the cows.