From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Brenner Newsgroups: gmane.emacs.help Subject: Re: Multiple Major Modes Date: Fri, 11 Dec 2009 13:57:59 -0800 Message-ID: <200912112158.nBBLvxHp067219@kzsu.stanford.edu> References: <25d42153-4e90-4491-b0a0-7efff5215f35@k17g2000yqh.googlegroups.com> <87fx918sr7.fsf@kzsu.stanford.edu> <87ljhaav81.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260568725 400 80.91.229.12 (11 Dec 2009 21:58:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 21:58:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 22:58:38 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 1NJDVV-0000iY-9f for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 22:58:37 +0100 Original-Received: from localhost ([127.0.0.1]:42617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJDVV-0008Kp-9K for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 16:58:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJDV7-0008K5-0x for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:58:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJDV2-0008Ii-Hm for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:58:12 -0500 Original-Received: from [199.232.76.173] (port=59219 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJDV2-0008If-FX for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:58:08 -0500 Original-Received: from smtp4.stanford.edu ([171.67.219.84]:46666 helo=smtp.stanford.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJDV2-0002h6-5E for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 16:58:08 -0500 Original-Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 4C0D0C94D; Fri, 11 Dec 2009 13:58:05 -0800 (PST) Original-Received: from kzsu.stanford.edu (KZSU.Stanford.EDU [171.66.118.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id DE1DAC907; Fri, 11 Dec 2009 13:58:04 -0800 (PST) Original-Received: from kzsu.stanford.edu (localhost.stanford.edu [127.0.0.1]) by kzsu.stanford.edu (8.13.4/8.13.7) with ESMTP id nBBLvxHp067219; Fri, 11 Dec 2009 13:58:04 -0800 (PST) (envelope-from doom@kzsu.stanford.edu) In-reply-to: Comments: In-reply-to Lennart Borgman message dated "Fri, 11 Dec 2009 18:08:29 +0100." X-Mailer: MH-E 8.1; nmh 1.2; GNU Emacs 23.1.50 X-Scanned-By: MIMEDefang 2.56 on 171.66.118.47 X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (kzsu.stanford.edu [127.0.0.1]); Fri, 11 Dec 2009 13:58:04 -0800 (PST) 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:70608 Archived-At: Lennart Borgman wrote: > On Fri, Dec 11, 2009 at 7:19 AM, Joseph Brenner wrote: > > > > Lennart Borgman writes: > > > >> Thanks for the answer Joseph. I just added some support for Mason > >> files to mumamo. It is not perfect (surprise! and there is an > >> indentation bug currently - those are very resistent to treatment), > > > > [...] > > > >> When you are in a Mason file turn do > >> > >> M-x mason-html-mumamo-mode > > > > I've tried this, and I'm seeing syntax coloring in the HTML sections, but > > none in the perl sections. Is 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. Previously I was seeing a perl section in two-tone, with just 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...). > >> to test it. (BTW, what file extensions do Mason files normally have?) > > > > The currently recommended Mason file extensions are *.mhtml for internal > > components, and *.html for external ones: > > > > http://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 to > > 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.