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: Thu, 29 Oct 2009 15:07:08 +0100

c-newline-and-indent calls indent-according-to-mode to get indentation
right for a major mode. However in the case of multiple major modes in a
buffer (not yet part of Emacs) the current major mode is not enough to
know to get the indentation correct.

MuMaMo (a framework for multiple major modes in a buffer) therefore
instead sets indent-line-function which is more flexible. However when
the user uses c-electric-semi&comma this is bypassed since this
function calls c-newline-and-indent.

I just got a bug report where this problem shows up:

  https://bugs.launchpad.net/nxhtml/+bug/463136

I do not know how to solve this problem, but perhaps is it possible that
c-newline-and-indent instead calls indent-line-function?


In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-10-15





reply via email to

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