From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sarir Khamsi Newsgroups: gmane.emacs.help Subject: Re: Emacs changed indenting on me Date: Fri, 01 Oct 2004 11:13:44 -0700 Organization: Raytheon Company Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096654722 6626 80.91.229.6 (1 Oct 2004 18:18:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2004 18:18:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 20:18:35 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 1CDRzG-0007zq-00 for ; Fri, 01 Oct 2004 20:18:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CDS5i-00016w-Rn for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2004 14:25:14 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!151.164.30.34!cyclone.swbell.net!bos-service1.raytheon.com!dfw-service2.ext.ray.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:e3J2hYcs6F1NrDZjiLCntFEMOYE= Original-Lines: 37 Original-NNTP-Posting-Host: 147.24.52.80 Original-X-Complaints-To: news@ext.ray.com Original-X-Trace: dfw-service2.ext.ray.com 1096654424 147.24.52.80 (Fri, 01 Oct 2004 13:13:44 CDT) Original-NNTP-Posting-Date: Fri, 01 Oct 2004 13:13:44 CDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125626 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20983 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20983 dave@adboyd.com (J. David Boyd) writes: > Sarir Khamsi writes: > >> Never mind...I did a diff between previous versions and found my >> problem. Sorry. > > You're supposed to tell us what the problem was so that we can all learn! Fair enough...this is what I took out: (add-hook 'c-mode-hook (function (lambda () (setq c-file-style "local")))) (add-hook 'c++-mode-hook (function (lambda () (setq c-file-style "local")))) (c-add-style "local" '((c-basic-offset . 3) (c-comment-only-line-offset . 0) (c-hanging-braces-alist . ((substatement-open before after))) (c-offsets-alist . ((topmost-intro . 0) (topmost-intro-cont . 0) (substatement . 3) (substatement-open . 0) (statement-case-open . 3) (statement-cont . 3) (access-label . -3) (inclass . 3) (inline-open . 0) )))) I didn't think I needed it. After I got the initial reply, it all made sense when I did the diff. Sari