From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: C formatting Date: Sat, 28 Dec 2002 14:50:00 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84wulu8d87.fsf@lucy.cs.uni-dortmund.de> References: <3E0CED7C.7020002@free.fr> <844r8y2yjv.fsf@lucy.cs.uni-dortmund.de> <3E0D9EA5.8000306@free.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041083791 24955 80.91.224.249 (28 Dec 2002 13:56:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 13:56:31 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SHS1-0006UN-00 for ; Sat, 28 Dec 2002 14:56:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18SHRF-000887-02 for gnu-help-gnu-emacs@m.gmane.org; Sat, 28 Dec 2002 08:55:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!p50876b5f.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: p50876b5f.dip.t-dialin.net (80.135.107.95) Original-X-Trace: fu-berlin.de 1041083413 8316166 80.135.107.95 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:zX83jKeN6ylSGuM56dhE2IiJA4g= Original-Xref: shelby.stanford.edu gnu.emacs.help:108547 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5076 Oodini writes: > I put 0, and then I get the *wanted behaviour*. > C-x ESC ESC > redo (c-set-offset (quote substatement) 0 nil) Well, if you say so. > So I modify my .emacs: > > (add-hook 'c-mode-hook > (function (lambda () > (c-set-style "bsd") > (setq c-basic-offset 4) > (c-set-offset 0) The above c-set-offset statement is obviously different from the one you get after C-x ESC ESC. Please try the one from C-x ESC ESC. -- Ambibibentists unite!