From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: more on mmm/php mode Date: Mon, 09 Apr 2007 23:28:00 +0200 Message-ID: <461AAFE0.1000003@gmail.com> References: <87irc55oiu.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176161754 5286 80.91.229.12 (9 Apr 2007 23:35:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2007 23:35:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Hadron Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 10 01:35:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hb1PI-0001fr-Vr for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 23:28:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hb1T9-0001fQ-VK for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 17:32:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hb1Ss-0001U1-Uj for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 17:31:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hb1Sq-0001Ij-H8 for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 17:31:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hb1Sq-0001IB-DP for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 17:31:52 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hb1Oy-0004IL-4i for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 17:27:52 -0400 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:60119 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Hb1Ov-0001x7-93; Mon, 09 Apr 2007 23:27:50 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 In-Reply-To: <87irc55oiu.fsf@gmail.com> X-Antivirus: avast! (VPS 000731-1, 2007-04-08), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Hb1Ov-0001x7-93. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Hb1Ov-0001x7-93 90668f4c53a6572df4b52ab1870df329 X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42538 Archived-At: Hadron wrote: > Anyone using mmm mode successfully to edit php/html combinations? > > How is reformat/indent? Hi Hadron, No, but I was just going to write to the list that the new version of nXhtml mode can handle this combination quite good. It requires Emacs 22 (yet, hopefully released in some weeks) as you know. Are there still problems with Emacs 22 and debian/ubuntu? I got some critic for the way I handled multiple modes in nXhtml and thought about it again and came to the conclusion that it was possible to write a fully functional general multiple major mode handling in Emacs 22 -- as long as you did not involve nXml and its derivatives. Since that was what I really wanted to do I had to rethink again. And looking closer into the nXml code I finally understood how to make it cooperate with other major modes. So nXhtml mode now offers editing of php/xhtml code with completion of xhtml tags, attributes and sometimes also attribute values. It requires no setup (except for unzipping and adding a single line to .emacs). I actually uploaded the new version today (and introduced a new small bug I will just fix - it affects empty documents only). You can find it here, with explanations of how the new way of handling multiple major modes and xhtml completion works: http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html