From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, Alan Mackenzie <acm@muc.de>
Cc: 4828@emacsbugs.donarmstrong.com
Subject: bug#4828: 23.1.50; c-newline-and-indent and indent-line-function
Date: Sat, 21 Nov 2009 15:09:08 +0100 [thread overview]
Message-ID: <e01d8a50911210609l6aab73dbo3b2c5c62da48084@mail.gmail.com> (raw)
In-Reply-To: <jwveiolr8oa.fsf-monnier+emacsbugreports@gnu.org>
On Fri, Oct 30, 2009 at 2:08 AM, Stefan Monnier
<monnier@iro.umontreal.ca> 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?
next prev parent reply other threads:[~2009-11-21 14:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 14:07 bug#4828: 23.1.50; c-newline-and-indent and indent-line-function Lennart Borgman
2009-10-30 1:08 ` Stefan Monnier
2009-11-21 14:09 ` Lennart Borgman [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50911210609l6aab73dbo3b2c5c62da48084@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=4828@emacsbugs.donarmstrong.com \
--cc=acm@muc.de \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).