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

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

bug#681: Wrong C++ indentation in batch mode


From: Bastien
Subject: bug#681: Wrong C++ indentation in batch mode
Date: Tue, 07 Jan 2014 17:09:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Vivien,

Vivien Mallet <Vivien.Mallet@inria.fr> writes:

> Now, launch from command line:
> \emacs -Q test.cpp --batch --eval="(defun cpp_indent () (c-set-style \"gnu\") 
> (c++-mode) (indent-region (point-min) (point-max) ()) (save-buffer))" 
> --eval="(cpp_indent)"
>
> You should get:
>
> template <class A, class B>
> Derived<A, B>::Derived():
>   Base<A,
>   B>() // Problem: wrong indentation in batch mode.
> {
>   int i:
> }
>
> In addition, it seems that "c-set-style" is not honored. It may be
> "bsd", "k&r", etc. without any difference.

Mhh... yes, I see now.

I reopend the bug and will let someone more familiar
with the code fix it.

-- 
 Bastien





reply via email to

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