GNU bug report logs - #523
C mode, whitesmith style indentation weirdness

Previous Next

Packages: cc-mode, emacs;

Reported by: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)

Date: Wed, 2 Jul 2008 22:20:04 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Bastien Guerry <bzg <at> altern.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)
To: emacs-pretest-bug <at> gnu.org
Subject: bug#523: C mode, whitesmith style indentation weirdness
Date: Thu, 03 Jul 2008 00:12:56 +0200
emacs -Q

(setq c-default-style "whitesmith")

C-x C-f /tmp/foo.c RET

Insert this text:

int main ()
{
f(xxx,
yyy,
zzz);
}


Press TAB at the start of each line =>

int main ()
    {
    f(xxx,
        yyy,
        zzz);
    }


Press TAB at the end of each line =>

int main ()
    {
        f(xxx,
            yyy,
        zzz);
        }


(A user noted a problem with whitesmith indentation in
<47b52516$0$24080$9b622d9e <at> news.freenet.de>)

-- 
Johan Bockgård




This bug report was last modified 11 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.