From: Richard Stallman <rms@gnu.org>
To: bug-cc-mode@gnu.org
Cc: emacs-devel@gnu.org
Subject: [christensenthomas@gmail.com: C indentation (problem)]
Date: Mon, 19 Mar 2007 01:14:54 -0400 [thread overview]
Message-ID: <E1HTACs-0003QX-6g@fencepost.gnu.org> (raw)
Would someone please DTRT and ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL,UNPARSEABLE_RELAY
autolearn=no version=3.1.0
From: Thomas Christensen <christensenthomas@gmail.com>
To: emacs-pretest-bug@gnu.org
Date: Tue, 13 Mar 2007 07:19:11 +0100 (CET)
Subject: C indentation (problem)
Hi emacs-pretest-bug,
In the emacs pretest I have indentation problems running php-mode.
The indentation breaks if I put in a php opening tag, otherwise it works
fine. I have tracked the source of the problem to the new c-mode
which php-mode inherits.
I am not sure if it's a bug or the ancient php-mode just needs to
accommodate for the new emacs.
This is the indentation in c-mode (it is the same in php-mode):
<? php
void foo() {
bar();
}
?>
the closing bracket aligns with the text in the php tag.
If this is not a bug, I would appreciate any information of how to
tweak c-mode settings to eliminate this closing indentation.
Sincerely
Thomas
In GNU Emacs 22.0.95.6 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
of 2007-03-12 on toshiba
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--with-gtk' '--without-toolkit-scroll-bars''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_DK.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: C/l
Minor modes in effect:
show-paren-mode: t
iswitchb-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Recent input:
<backspace> d SPC f o o ( ) SPC { <return> } <right>
<up> <left> <up> <left> <left> <left> <down> <up> SPC
SPC SPC <down> <tab> <down> <tab> <up> C-e <return>
<tab> b a t r <backspace> <backspace> r ( ) ; <up>
<tab> <down> <tab> <down> <tab> <down> C-x C-s <up>
<up> <up> <up> C-a C-SPC C-SPC <down> <down> <down>
<down> <down> <down> <down> M-w M-x e m a <tab> - <backspace>
r <backspace> p <tab> <backspace> b <tab> C-g <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>
Recent messages:
Loading paren...done
Loading advice...done
end
For information about the GNU Project and its goals, type C-h C-p.
(New file) [2 times]
Wrote /home/thomasc/test.c
Mark set
Mark activated
Quit [2 times]
Loading emacsbug...done
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
next reply other threads:[~2007-03-19 5:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-19 5:14 Richard Stallman [this message]
2007-03-19 20:08 ` [christensenthomas@gmail.com: C indentation (problem)] Alan Mackenzie
2007-03-20 23:45 ` Thomas Christensen
2007-03-21 19:54 ` Thomas Christensen
2007-03-22 4:37 ` Stefan Monnier
2007-03-22 19:44 ` Thomas Christensen
2007-03-23 16:43 ` Stefan Monnier
2007-03-25 1:45 ` Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2007-03-14 3:23 Richard Stallman
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=E1HTACs-0003QX-6g@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@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.