unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [christensenthomas@gmail.com: C indentation (problem)]
@ 2007-03-19  5:14 Richard Stallman
  2007-03-19 20:08 ` Alan Mackenzie
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Stallman @ 2007-03-19  5:14 UTC (permalink / raw)
  To: bug-cc-mode; +Cc: emacs-devel

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 -------

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [christensenthomas@gmail.com: C indentation (problem)]
@ 2007-03-14  3:23 Richard Stallman
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Stallman @ 2007-03-14  3:23 UTC (permalink / raw)
  To: emacs-devel

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 -------

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-03-25  1:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19  5:14 [christensenthomas@gmail.com: C indentation (problem)] Richard Stallman
2007-03-19 20:08 ` 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

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).