GNU bug report logs - #877
23.0.60; c-mode indentation and php

Previous Next

Package: notemacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Wed, 3 Sep 2008 21:40:03 UTC

Severity: normal

Merged with 880

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 877 in the body.
You can then email your comments to 877 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#877; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org, Alan Mackenzie <acm <at> muc.de>
Subject: 23.0.60; c-mode indentation and php
Date: Wed, 03 Sep 2008 23:34:04 +0200
In php-mode.el (not yet a part of Emacs, but has been discussed for
inclusion) c-indent-line is used for indentation. That works nicely for
the php code part of a php template page, but there is a disturbing
glitch that probably can be fixed.

Constructs like the one below are rather common.

   if (1) {
 ?>
  ...
 <?php
     }

If you try to indent the line with the single "}" in c-mode it does not
get aligned with "if (1) {". I have narrowed this down to

   if (1) {
 ?php
     }

Adding a semicolon after "?php" makes everything work.

Is the current indentation behaviour in this case useful in some way? Is
there some option to change it?

The example came from a bug report/question for nXhtml:

  https://answers.launchpad.net/nxhtml/+question/43320


In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-09-03
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'




bug reassigned from package `emacs' to `emacs,cc-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 04 Sep 2008 02:55:06 GMT) Full text and rfc822 format available.

Forcibly Merged 877 880. Request was from "Juanma Barranquero" <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Thu, 04 Sep 2008 11:20:06 GMT) Full text and rfc822 format available.

bug reassigned from package `emacs,cc-mode' to `php-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 04 Sep 2008 16:50:09 GMT) Full text and rfc822 format available.

bug reassigned from package 'php-mode' to 'notemacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Mon, 30 Nov 2009 21:55:09 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 877 <at> debbugs.gnu.org and "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 01 Mar 2011 09:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 29 Mar 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.