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: New version of nXhtml available Date: Fri, 07 Mar 2008 18:24:50 +0100 Message-ID: <47D17A62.6080306@gmail.com> References: 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: ger.gmane.org 1204910770 26111 80.91.229.12 (7 Mar 2008 17:26:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 17:26:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Richard G Riley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 18:26:36 2008 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 1JXgKv-0003jY-3K for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 18:26:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXgKN-0004BX-2q for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2008 12:25:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXgJX-0003QD-AY for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 12:24:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXgJW-0003PH-IO for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 12:24:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXgJW-0003P5-Fc for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 12:24:58 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXgJV-00025S-QI for help-gnu-emacs@gnu.org; Fri, 07 Mar 2008 12:24:58 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:61607 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JXgJR-00057F-64; Fri, 07 Mar 2008 18:24:56 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080307-0, 2008-03-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JXgJR-00057F-64. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JXgJR-00057F-64 91ec0fb709a1b69f94c2c0e033f70aa4 X-detected-kernel: by monty-python.gnu.org: 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:52137 Archived-At: Richard G Riley wrote: > Richard G Riley writes: > >> "Lennart Borgman (gmail)" writes: >> >>> Just uploaded a new version of nXhtml, see >>> >>> http://www.emacswiki.org/cgi-bin/wiki/NxhtmlMode >>> >>> There are rather big changes in this release. >> I created a new file, text.php, >> >>
>> angry >> >> >> and both div and img are underlined I can do no completion at any >> point. How to set this up to work? I tried various validation >> schemas. Maybe I am missing something? Hi Richard, Yes, but I can see that you have found it: Fictive XHTML validation headers. They are supposed to tell the XHTML parser (from nxml-mode) the state beginning parsing state. As you surely know now they are in the menus under nXhtml Completion and Validation Validation helpers (for php etc) >> Can you run through just what sequence of options I must select to make >> this work (emacs 22). >> >> I think I might be getting confused between the schema settings under >> xml and the nxhtml completion. >> >> But if you could run through from A to Z on getting completion working I >> would be grateful. It is just that validation header which you need in a buffer where there is no or just a partial "document header". >> Multiple major mode is working. if I add some embedded php it >> switches. But I'm more interested in just getting basic nxhtml >> completion working for a start. >> >> Should everything be done from the nxhtml menu? Or a combination of the >> xml and the nxhtml menu? The docs here: >> >> http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html >> >> are a little vague. Most things you need are in the nXhtml menu. You should not need to do things like "Set Schema" from the XML menu. However if you PHP code is just using tags (and does not do those things inside an attribute or as part of an opening tag) then "First Error"/"Next Error" can of course be useful. If you think the docs can be improved then maybe you have some suggestion? >> Possibly I have old "settings" files left lying around from the old >> version? Should I delete my schemas.xml file? You should not need any such file just to edit PHP. Everything needed should be there with nXhtml. >> Any help appreciated. > > Just a little more info : I can see the fictive validation header. But > the actual php buffer appears not to be validated with it. If I remove > the 2 lines above and then select completion the first option is > > > even though I see that already in the fictive buffer. The only > conclusion I can come to is that its not using the fictive visible > validation header for some reason. That does not happen for me here. It could be a bug. (A difficult one. The parser could be in a bad state.) Could you just close the file and reopen it? Then add the validation header again. Does it work for you now? Otherwise please send me more detailed information. Exactly what do you do etc.