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 Guerry
Subject: bug#681: Wrong C++ indentation in batch mode
Date: Tue, 07 Jan 2014 11:26:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi Vivien,

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

>       The indentation in C++ mode does not seem to work properly in batch 
> mode with 
> the following code (indented in interactive mode):
> """
> template <class A, class B>
> Derived<A, B>::Derived():
>   Base<A,
>        B>() // Problem: wrong indentation in batch mode.
> {
> }
> """
>
>       Now, define the Lisp function:
> (defun cpp_indent ()
>   (c-set-style "gnu")
>   (c++-mode)
>   (indent-region (point-min) (point-max) ())
>   (save-buffer)
>   )
>       And apply it the previous function. It will result in:
> """
> template <class A, class B>
> Derived<A, B>::Derived():
>   Base<A,
>   B>() // Problem: wrong indentation in batch mode.
> {
> }
> """
>       which is inconsistent with the interactive and is not, I presume, the 
> targeted result.

I can't reproduce this.  I get the correct indentation.

I'm closing this bug report, feel free to reopen it if needed.

-- 
 Bastien





reply via email to

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