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: Alan Mackenzie
Subject: bug#681: Wrong C++ indentation in batch mode
Date: Tue, 29 Dec 2015 22:02:08 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

Hello, Andrew.

On Mon, Dec 28, 2015 at 08:18:02PM -0500, Andrew Hyatt wrote:

> Bastien <address@hidden> writes:

> > Hi Vivien,

> > Vivien Mallet <address@hidden> 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.

I started looking at this back in 2011, but got stuck.  I've still got my
notes from then.  I'll see if I can get this fixed now.

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

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