[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#681: Wrong C++ indentation in batch mode
From: |
Andrew Hyatt |
Subject: |
bug#681: Wrong C++ indentation in batch mode |
Date: |
Mon, 28 Dec 2015 20:18:02 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) |
Bastien <bzg@altern.org> writes:
> 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.
I'm not the one more familiar, but I just want to record that this still
reproduces on emacs 25.
- bug#681: Wrong C++ indentation in batch mode,
Andrew Hyatt <=