From: Lennart Borgman <lennart.borgman@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#4828: 23.1.50; c-newline-and-indent and indent-line-function
Date: Thu, 29 Oct 2009 15:07:08 +0100 [thread overview]
Message-ID: <e01d8a50910290707w3dd9c8cfg5526fed88eabec93@mail.gmail.com> (raw)
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
next reply other threads:[~2009-10-29 14:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 14:07 Lennart Borgman [this message]
2009-10-30 1:08 ` bug#4828: 23.1.50; c-newline-and-indent and indent-line-function Stefan Monnier
2009-11-21 14:09 ` Lennart Borgman
2009-11-22 8:22 ` Alan Mackenzie
2011-07-13 14:31 ` Lars Magne Ingebrigtsen
2016-02-28 6:35 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50910290707w3dd9c8cfg5526fed88eabec93@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=4828@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.