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

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

Does the C++ style "Stroustrup" really feet Bjarne's book?


From: Zero Yu
Subject: Does the C++ style "Stroustrup" really feet Bjarne's book?
Date: 20 Jan 2004 19:52:30 -0800

I am a new guy in emacs. I choose style "Stroustrup" in C++ style. But
I found that sometimes it didn't really meet the book.

   When I write the inline function in class defination, e.g.
   class X() {
   public:
        X()
        {
           foo();
             function_indent_incorrect();
        }
   };

   After I select the region, and use the function "indent-region",
Emacs didn't indent correctly. It will indent like this:
   class X() {
   public:
        X()
{
   foo();
   function_indent_incorrect();
}
};

Is there any way to change that? or I have to write all the sentences
in one line.


reply via email to

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