From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marko Myllymaki Newsgroups: gmane.emacs.help Subject: multiple languages in one file, nxhtml-mode... Date: Thu, 05 Mar 2009 13:19:35 +0200 Organization: Elisa Customer Message-ID: 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 1236270465 6457 80.91.229.12 (5 Mar 2009 16:27:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 16:27:45 +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 Mar 05 17:29:02 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 1LfGRH-0005AJ-6v for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 17:28:51 +0100 Original-Received: from localhost ([127.0.0.1]:50511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfGPv-0007OT-TO for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 11:27:27 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!feeder2.news.saunalahti.fi!uutiset.elisa.fi!7564ea0f!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 91.153.111.6 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: uutiset.elisa.fi 1236251976 91.153.111.6 (Thu, 05 Mar 2009 13:19:36 EET) Original-NNTP-Posting-Date: Thu, 05 Mar 2009 13:19:36 EET Original-Xref: news.stanford.edu gnu.emacs.help:167318 X-Mailman-Approved-At: Thu, 05 Mar 2009 11:26:15 -0500 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:62625 Archived-At: I'm trying to get nxhtml-mode to work - it would really help editing documents with many different code blocks... I need at least correct indenting of code lines, line wrap and syntax hilighting say with php, xhtml, css, javascript, xml... automatic validation when editing is not so important... If someone could suggest "simpler mode" to achieve these goals, I would really appreciate that. Previously I used only PHP-mode (and others for other languages) but it does not work with multiple source code blocks. Problems with nxhtml-mode: I load a file called something.php which has php-blocks and xhtml and possibly javascript... When I scroll it, emacs mode line changes the context (PHP/nxhtml - nXhtml/nxhtml) quite nicely. But then... when editing Problems: lots of lisp or other errors interrupt editing and drive me crazy, like: "Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) rng-after-change-function(384 385 0) self-insert-command(1) newline(nil) call-interactively(newline nil nil)" "Variable binding depth exceeds max-specpdl-size" What are these? Font lock mode does usually not work - syntax hilighting does not always change when changing code blocks... My environment: Debian Linux GNU Emacs 23.0.90.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-02-22 on elegiac, modified by Debian (emacs snapshot... but v22 did not work either) nXhtml mode version 1.75 nXML mode version 20041004