From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Elston Newsgroups: gmane.emacs.help Subject: Re: How can I turn off the electricity in C-mode? Date: Thu, 31 May 2007 11:54:41 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <135u6fhotf0vk38@corp.supernews.com> References: <87wsyp9sx2.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1180640459 17368 80.91.229.12 (31 May 2007 19:40:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 May 2007 19:40:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 31 21:40:52 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HtqVe-0001lR-Up for geh-help-gnu-emacs@m.gmane.org; Thu, 31 May 2007 21:40:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtqVe-0008TT-ED for geh-help-gnu-emacs@m.gmane.org; Thu, 31 May 2007 15:40:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xt-sjc-02!sn-xt-sjc-11!sn-xt-sjc-07!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) In-Reply-To: Original-X-Complaints-To: abuse@supernews.com Original-Lines: 34 Original-Xref: shelby.stanford.edu gnu.emacs.help:148989 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:44579 Archived-At: * Bruce Korb wrote (on 5/31/2007 8:29 AM): > Hadron wrote: >> I dont know about local variables but in c-mode its bound to C-c C-l >> or M-x c-toggle-electric-state > > M-x describe-key > C-c C-l is undefined > > Must be a different version of c-mode. > > M-x c-version yields: > Using CC Mode version 5.28 > and M-x c-toggle-electric-state gets a beep. > > C-c C-l would be convenient enough, tho the variable would be better. > Maybe I can figure out how to make a minor mode for these weirdly > formatted files and trigger that minor mode.... > > I'm updating emacs now. Thank you. Regards, Bruce > > From Emacs 22.0.50.1 (Using CC Mode version 5.31.3): c-toggle-electric-state is an interactive compiled Lisp function in `cc-cmds.el'. (c-toggle-electric-state &optional arg) Toggle the electric indentation feature. Optional numeric arg, if supplied, turns on electric indentation when positive, turns it off when negative, and just toggles it when zero or left out. Mark