From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Thomas Christensen" Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: [christensenthomas@gmail.com: C indentation (problem)] Date: Wed, 21 Mar 2007 20:54:53 +0100 Message-ID: <4214906b0703211254v70e0adfbube98fe41ba84817f@mail.gmail.com> References: <20070319212605.GA2077@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1346154841==" X-Trace: sea.gmane.org 1174506913 14168 80.91.229.12 (21 Mar 2007 19:55:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 19:55:13 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org To: "Alan Mackenzie" Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Wed Mar 21 20:55:03 2007 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by lo.gmane.org with esmtp (Exim 4.50) id 1HU6ti-0001Gx-I3 for sf-cc-mode-help@m.gmane.org; Wed, 21 Mar 2007 20:55:02 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id ED179129CD; Wed, 21 Mar 2007 11:55:01 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HU6te-0003Zo-JP for cc-mode-help@lists.sourceforge.net; Wed, 21 Mar 2007 12:54:58 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HU6tc-0007B9-LI for cc-mode-help@lists.sourceforge.net; Wed, 21 Mar 2007 12:54:58 -0700 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HU6re-000696-M2 for bug-cc-mode@gnu.org; Wed, 21 Mar 2007 15:52:54 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1HU6ta-0005nF-T2 for bug-cc-mode@gnu.org; Wed, 21 Mar 2007 15:54:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=failed version=3.1.0 Original-Received: from wr-out-0506.google.com ([64.233.184.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HU6ta-0005n1-EI for bug-cc-mode@gnu.org; Wed, 21 Mar 2007 15:54:54 -0400 Original-Received: by wr-out-0506.google.com with SMTP id 76so368911wra for ; Wed, 21 Mar 2007 12:54:54 -0700 (PDT) Original-Received: by 10.65.53.3 with SMTP id f3mr2386620qbk.1174506893766; Wed, 21 Mar 2007 12:54:53 -0700 (PDT) Original-Received: by 10.65.183.2 with HTTP; Wed, 21 Mar 2007 12:54:53 -0700 (PDT) In-Reply-To: <20070319212605.GA2077@muc.de> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-Spam-Score: 0.1 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 0.0 RCVD_BY_IP Received by mail server with no name 0.1 HTML_40_50 BODY: Message is 40% to 50% HTML 0.0 HTML_MESSAGE BODY: HTML included in message X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4441 gmane.emacs.devel:68250 Archived-At: --===============1346154841== Content-Type: multipart/alternative; boundary="----=_Part_66239_10577261.1174506893675" ------=_Part_66239_10577261.1174506893675 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 19 Mar 2007 21:08:19 +0100, Alan Mackenzie wrote: > > (i) Tell me about this PHP Mode. Where do I find the PHP Mode that you > are using? Who maintains it? (Yourself, perhaps?) It doesn't seem to > be part of Emacs 22 itself. The information you've posted says "Major > mode: C/l", which isn't "PHP Mode". How does php-mode work, here? > [Note: I don't know PHP, so be gentle on me, please!] > I feel I failed to mention the original problem. The original problem was this indentation using the php-mode: As you can see php syntax is closely related to C syntax. Hope this helps. Thomas ------=_Part_66239_10577261.1174506893675 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
On 19 Mar 2007 21:08:19 +0100, Alan Mackenzie <acm@muc.de> wrote:
(i) Tell me about this PHP Mode.  Where do I find the PHP Mode that you
are using?  Who maintains it?  (Yourself, perhaps?)  It doesn't seem to
be part of Emacs 22 itself.  The information you've posted says "Major
mode: C/l", which isn't "PHP Mode".  How does php-mode work, here?
[Note: I don't know PHP, so be gentle on me, please!]


I feel I failed to mention the original problem.  The original problem was this indentation using the php-mode:

  <?php
  function foo() {
    echo "bar\n";
    }
 
  foo();
  ?>

As you can see php syntax is closely related to C syntax.

Hope this helps.

        Thomas
------=_Part_66239_10577261.1174506893675-- --===============1346154841== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============1346154841==--