From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4828: 23.1.50; c-newline-and-indent and indent-line-function Date: Thu, 29 Oct 2009 15:07:08 +0100 Message-ID: Reply-To: Lennart Borgman , 4828@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1256826821 16384 80.91.229.12 (29 Oct 2009 14:33:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2009 14:33:41 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 29 15:33:33 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3W2s-0003sE-Fc for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 15:33:32 +0100 Original-Received: from localhost ([127.0.0.1]:39885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3W2q-0004km-9g for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Oct 2009 10:32:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3VyG-0002xK-J5 for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2009 10:27:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3VyC-0002wM-Qu for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2009 10:27:24 -0400 Original-Received: from [199.232.76.173] (port=40997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3VyC-0002wF-LX for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2009 10:27:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36934) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3VyB-0004fG-Io for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2009 10:27:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9TEREe5013988; Thu, 29 Oct 2009 07:27:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9TEA5bH011976; Thu, 29 Oct 2009 07:10:05 -0700 Resent-Date: Thu, 29 Oct 2009 07:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 29 Oct 2009 14:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4828 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125682525611676 (code B ref -1); Thu, 29 Oct 2009 14:10:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 Oct 2009 14:07:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9TE7Z0u011663 for ; Thu, 29 Oct 2009 07:07:36 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:33545 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N3Vf4-0004tb-I7 for emacs-pretest-bug@gnu.org; Thu, 29 Oct 2009 10:07:34 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N3Vf2-00018W-E2 for emacs-pretest-bug@gnu.org; Thu, 29 Oct 2009 10:07:34 -0400 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:57873) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3Vf1-00018K-W4 for emacs-pretest-bug@gnu.org; Thu, 29 Oct 2009 10:07:32 -0400 Original-Received: by yxe29 with SMTP id 29so1708870yxe.14 for ; Thu, 29 Oct 2009 07:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=c/q9Y+r8/b283Tjxj4+knSYHy9f07qltTpei+DZAQyg=; b=caJ0COuArzAV61JdtArMZj16lznp/APS9wx9w8v0UYEN7zIanLulSQ3uKNPhV/puG1 K93+agvQYDDyfnHhqZetao1zizGRBIudmJQJk2QohQDYcN8PgHPiisowvFm0qPgdyZmJ tqYqf1y1S7ys1pMa/Ym+OuH1PGJ3s52G5qdEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=saLqe5Nvv/ggmsDMKz2m9JbyHm0X6GczSU1Unnjh6waabUNM1QQ06/aNAbXupcQc+B 2eQj+vJZ9PeJiPM2mvXx8NROSVrgGu5RMT8qRMEX0SI8JeYemt6ITEtj7ue+OwSdpYz2 w+vi7Tj85wvjSq7ARMTpLQObttWxD1T9t4pdw= Original-Received: by 10.101.159.36 with SMTP id l36mr199579ano.14.1256825249815; Thu, 29 Oct 2009 07:07:29 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 29 Oct 2009 10:27:24 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32273 gmane.emacs.pretest.bugs:25149 Archived-At: 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