From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: nxhtml and emacs 23 Date: Thu, 02 Apr 2009 20:19:13 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1238697704 26976 80.91.229.12 (2 Apr 2009 18:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 18:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 02 20:43:03 2009 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 1LpRrm-0004v2-FJ for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 20:42:18 +0200 Original-Received: from localhost ([127.0.0.1]:55111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpRqO-00049s-Gs for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 14:40:52 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 86 Original-X-Trace: news.eternal-september.org U2FsdGVkX19724amIcqzLk0+o46+4gkVnHsnTsvNqsEEXYQNb0oZhtGnY6tE7fLXl3l5RgQl3Oay9yrxRlTk3ScBUcHVVTwxEq6ctOSX5bNR9Q9chJc74BR+Vn/y6ky4lWbi1lH/pSo= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 2 Apr 2009 18:19:09 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/lD4kdc7vh96/fYlj+NBAni5XMJjRsrqI0dMshsLjYtw== Cancel-Lock: sha1:dHPM3NQXKyZXK8RHcHTlSxw+sNA= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:168164 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:63448 Archived-At: Lennart Borgman writes: > On Wed, Apr 1, 2009 at 9:28 AM, Richard Riley wrote: >> >> I would be interested to hear from anyone using nxhtml with windows 23. >> >> I have a couple of issues cropping up and would be interested in seeing >> if other people have them. >> >> 1) First mixed mode .php file I open is in mixed mode fine. >> 2) Second is in php-mode with no mumamo mode. > > This is because php-mode.el associate .php-files with php-mode. This > association happens when you load php-mode.el. (Sigh!) > > I have tried to find a way to work around this problem. If you look in > the "nXhtml" submenu under "Tools" there is an entry called "Major > Mode Priorities" that does this. You have to turn it on however since > I didn't dare to do that by default. Well, I would vote that you should. Since if using nxhtml it makes no sense to open one file in nxhtml mode and then the next in php mode. This was very frustrating and would surely confuse people - I know it did me and I spent a long time trying to figure out why :-( (I'm a pretty lousy elisp programmer unfortunately). And it never used to be the way in older versions. > > I have taken up this problem on Emacs Devel, but have not had time to > explain it sufficiently yet. I think it will be much more easy to do > that once I have got nXhtml working the way it should. > > >> If I call (majmodpri-sort-lists) this then works "ok" in that I can open more >> php files and  they are correctly in nxhtmlk-mumamo-mode and not just >> php-mode. > > Ah, yes. That is in principle what I pointed to above. > > >> The problem I then have is if I try to edit a php chunk. The >> first key press in the chunk gives something along the lines of >> >> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >>  rng-after-change-function(529 530 0) > > I will try to look into this. Have you reported this as a bug and > attached a backtrace? I will send you more details. I will try and reproduce this evening. > > >> I would be willing to put some/a lot of time into providing more info to >> anyone that can help sort this out as I used to rely on nxhtml a lot. As >> it is I'm not sure if its an emacs 23 thing only so any one else using >> it, I would love to hear from you. > > Sorry for the trouble. I have been to engaged in other trouble to be > able to work on nXhtml at the moment. I am however working on it, but > slowly. Please do :-) It's an excellent mode and I have been a little lost without it! Can it work with html 4.01 mode btw or only xhtml versions? I dumped xhtml recently when I realised how poorly its actually implemented cross browser and having read this: http://www.webdevout.net/articles/beware-of-xhtml#broken_xhtml But for mixed mode editing nxhtml is excellent, but its very broken at the moment on my system. > >> CVS emacs 23 (emacs snapshot from debian doesnt work either), nxhtml >> from 20090226. >> >> regards >> >> r. >> > > --