From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Multiple Major Modes Date: Fri, 11 Dec 2009 23:06:24 +0100 Message-ID: References: <25d42153-4e90-4491-b0a0-7efff5215f35@k17g2000yqh.googlegroups.com> <87fx918sr7.fsf@kzsu.stanford.edu> <87ljhaav81.fsf@kzsu.stanford.edu> <200912112158.nBBLvxHp067219@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260569241 2252 80.91.229.12 (11 Dec 2009 22:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 22:07:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joe Brenner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 23:07:14 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 1NJDdq-0004qt-2h for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 23:07:14 +0100 Original-Received: from localhost ([127.0.0.1]:51532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJDdq-0004g2-2a for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 17:07:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJDdT-0004ff-6D for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 17:06:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJDdN-0004er-Ny for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 17:06:49 -0500 Original-Received: from [199.232.76.173] (port=40756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJDdN-0004en-Ed for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 17:06:45 -0500 Original-Received: from mail-yw0-f172.google.com ([209.85.211.172]:42953) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJDdM-0003Ul-U0 for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 17:06:45 -0500 Original-Received: by ywh2 with SMTP id 2so1425954ywh.27 for ; Fri, 11 Dec 2009 14:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=rw9uG+01UdHE184gKRtuCS2+HvkHQz/hxyyFfzo5zoE=; b=h4Lq+H7AOx8n5QOUPlvVHKW0O0Rpc3l7ptNWY8+if9F/RaSdlGYujg7L2MjcFnlyN4 OU+w4yF+4y3tAXYx76ZGx/CAU+cW1aDUtBtSnj1Yv/8eN3dsFQ/Ncv1Yj+GyZk+dufMn 9rxz5n8DW7aYsug5S0un0iASmNSKaqSq0wTWw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=EEOUsdjOL1Jt771lsOWRms0/oszHXV+ch4vLebm2wGLtdLYxdLS6hBoOQ+UNb2GQvH nDbQxhxuNCaieQ92rV0HdUH0WgXUOzrWY9shuSSLlXBR2TutakwCwO/2lXG938XDjt/z SIpq0tioC3wE7h/3OD1ztoQClzRLoe0BpB08I= Original-Received: by 10.101.210.31 with SMTP id m31mr3105196anq.115.1260569204096; Fri, 11 Dec 2009 14:06:44 -0800 (PST) In-Reply-To: <200912112158.nBBLvxHp067219@kzsu.stanford.edu> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:70609 Archived-At: On Fri, Dec 11, 2009 at 10:57 PM, Joe Brenner wrot= e: >> > >> > I've tried this, and I'm seeing syntax coloring in the HTML sections, = but >> > none in the perl sections. =C2=A0Is that about what you expected? >> >> >> I always expect some unexpected problems ... ;-) >> >> But, no, it should of course do syntax coloring etc in the perl >> sections too. Maybe I have misunderstood something. Can you give me an >> example, please? > > I tried to reproduce it to take a screen shot, but now it's working okay > for me. =C2=A0Previously I was seeing a perl section in two-tone, with ju= st > the html areas colorized. > > So this is a problem that only comes up after my emacs has been running > for awhile (some of my other mumamo experiments have been locking up > emacs, so I've had to do more fresh restarts than I normally would...). This can happen if some bug in mumamo is hit. Normally you can get it working again by just calling the multi major mode again. However when this happens I would be glad for a bug report. Those bugs are a bit hard to find so any report may help. Please look in the message buffer and see if there is any information and then report it as an nXhtml bug. >> >> to test it. (BTW, what file extensions do Mason files normally have?) >> > >> > The currently recommended Mason file extensions are *.mhtml for intern= al >> > components, and *.html for external ones: >> > >> > =C2=A0http://www.masonhq.com/?FAQ:ServerConfiguration#h-what_filename_= extensions_should_i_use_for_mason_components_ >> > >> > That means, of course that the file extension alone gives you no way t= o >> > distinguish between a plain html file and a top-level Mason file. >> >> Thanks. I am a bit surprised by the second convention. > > The reasoning seems to be that the client is asking for html, and that's > what you're going to deliver to them... the fact that Mason is used to > generate the html is an internal detail there's no point in bothering > them with. Hm, I see. It is maybe a pretty good reason on that side. But do clients really care about the URL "file extension"?