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

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

bug#4828: 23.1.50; c-newline-and-indent and indent-line-function


From: Lennart Borgman
Subject: bug#4828: 23.1.50; c-newline-and-indent and indent-line-function
Date: Sat, 21 Nov 2009 15:09:08 +0100

On Fri, Oct 30, 2009 at 2:08 AM, Stefan Monnier
<address@hidden> wrote:
>> c-newline-and-indent calls indent-according-to-mode to get indentation
> [...]
>> I do not know how to solve this problem, but perhaps is it possible that
>> c-newline-and-indent instead calls indent-line-function?
>
> Why would that help?  indent-according-to-mode doesn't do much more than
> call indent-line-function.

Eh, sorry.

Looking at the code in c-electric-semi&comma I think it is better to
change the call to (c-indent-line) currently on line 938 in cc-cmds.el
to (funcall indent-line-function). That will fix the problem I think.

            (if c-syntactic-indentation
                ;;(c-indent-line)
                (funcall indent-line-function)
              )

Would that be the right fix Alan?





reply via email to

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