bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible emacs bug in c-mode


From: the Smith Family
Subject: Possible emacs bug in c-mode
Date: Tue, 12 Jun 2001 23:44:37 +0100

Hi

I configure c-mode with the following

    (setq default-tab-width 4)
    (setq c-indentation-style "java")

The intention is to get TAB's retained as TAB characters in the file (i.e
without any space padding to 4-char boundaries). This is to be consistent
with coding standards across other IDE's.

In java-mode this largely works. But the following indentation is wrong

    if (true) {
        doSomething();               // ok
    }
    if (true)
        {                                    // argh!
            doSomething();
        }

Playing with (setq c-indent-level 4), (setq c-brace-offset -4) does not seem
to help
Any ideas or workarounds please?

Thanks
David Smith
0207 568 0357





reply via email to

[Prev in Thread] Current Thread [Next in Thread]