From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marcelo Toledo Newsgroups: gmane.emacs.help Subject: Re: indentation issues when editing a PHP file Date: Fri, 26 Mar 2004 16:03:59 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n063nzo0.fsf@kali.intranet> References: <20040326173451.6525.qmail@web13004.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080328994 24676 80.91.224.253 (26 Mar 2004 19:23:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2004 19:23:14 +0000 (UTC) Cc: Turadg Aleahmad Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 26 20:22:53 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6wuq-0005ju-00 for ; Fri, 26 Mar 2004 20:22:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6wrZ-0006HS-JA for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Mar 2004 14:19:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6wqU-00068v-Lj for help-gnu-emacs@gnu.org; Fri, 26 Mar 2004 14:18:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6wpx-00060H-0w for help-gnu-emacs@gnu.org; Fri, 26 Mar 2004 14:18:20 -0500 Original-Received: from [200.213.197.161] (helo=hm61.locaweb.com.br) by monty-python.gnu.org with smtp (Exim 4.30) id 1B6wkb-0004SN-A9 for help-gnu-emacs@gnu.org; Fri, 26 Mar 2004 14:12:17 -0500 Original-Received: (qmail 5048 invoked from network); 26 Mar 2004 19:10:43 -0000 Original-Received: from unknown (10.1.10.10) by hm61.locaweb.com.br with QMTP; 26 Mar 2004 19:10:43 -0000 Original-Received: (qmail 1861 invoked from network); 26 Mar 2004 19:11:46 -0000 Original-Received: from unknown (HELO kali.intranet.marcelotoledo.org) (marcelo@marcelotoledo.org@200.164.19.184) by hm10.locaweb.com.br with SMTP; 26 Mar 2004 19:11:47 -0000 Original-To: help-gnu-emacs@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUREBKVenaCZF94VlBp TEhXPzzH0uJJMS+5w9gzIiKEqtMzAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAA AAd0SU1FB9MGCwAYJycum7IAAAH+SURBVHjavVO5bttAECUCGMGWOwICtTtL5Si1s4ThLuBRuEwk gfEPCCptwQHBUh3LRWiC2L/NLGNHqyNtCJDFPL735kyS//mIf8Z94q4BToirJDe9FxThJoYX4oqD F975Sxc/Nq33/vx/kQzr0lZVfUHxa4Na26o+A8TPghCRys0ZZdgYRECylTsDVoRKgaasPVUaC6OU VKz14E5KGRiQUuq6aWMtEQCOQ72mVsQmbqjKfC6BU749YYhmbNashWmZPbqvEcPniBynuirbIYu0 RtRkkLCydP8rjxgvtMk1EaDRVa8jk5esYiDj8jF7AhcBlsDmtpiAiPE4EBoys5xrsc/pEfjSk0a9 BOIqF/3iCNCzQTlTklOWdv/pCHyz3CoA0AykT3dHYH/LrQKjtJGg48a/mwCUQAhpEwE3C84HlZyR AV3Hg6KcDTgnWPJM4r7vC+Bcu0MA1jEgeim57aEQvToZ+w0bsAmPXRdtPPX3y8ldKm3pgSf3F3N5 KFsB75a5c7wF7u04egW8QBwnzHjx3ygiGZUKnUJjIPXJtKhMY64g/AMg6Kr+cYBXCydW3GCWCp8y nXeHcHguHN8+rDuGzCDV3bybnINaH1QgLCqg6rouxFkocaPiQwhxNvq8YyAkxqfpfNh3fuZM+bjb 7kJmju/Yie+v/x+k/LDddr8BShKMrI4evB8AAAAASUVORK5CYII= In-Reply-To: <20040326173451.6525.qmail@web13004.mail.yahoo.com> (Saifi Khan's message of "Fri, 26 Mar 2004 09:34:51 -0800 (PST)") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17653 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17653 it is wrong, it forces you to write it as: class test { function test() { } } but, as you are saying, i code like: class test { function test() { code(); } } i am copying to the maintainer of php-mode so he can take a look at this. Saifi Khan writes: > Hi: > > > When editing a PHP file, the '{' curly brace > positions itself as indicated below. > > > class Log > { > function log( $msg ) > ...{ > ...} > } > > the dots (.) are for indicating the spaces. > > > The following indentation style is what I would like to see. > > > class Log > { > function log( $msg ) > { > } > } > > > I have spent sometime looking at the .emacs file, indentation options > and other mails on the mailing list. > > > I have been able to setup CCmode for C, C++ and Java, > however this just beats me. > > What options should I place in my php-hook-function ? > I will appreciate suggestions to solve this problem. > > > thanks > Saifi. > > Ps. please see the attached .emacs file > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs -- Marcelo Toledo marcelo@marcelotoledo.org http://www.marcelotoledo.org Mobile: 55 71 9141-7181