From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Brenner Newsgroups: gmane.emacs.help Subject: Re: Multiple Major Modes Date: Thu, 10 Dec 2009 22:19:26 -0800 Message-ID: <87ljhaav81.fsf@kzsu.stanford.edu> References: <25d42153-4e90-4491-b0a0-7efff5215f35@k17g2000yqh.googlegroups.com> <87fx918sr7.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260513663 14718 80.91.229.12 (11 Dec 2009 06:41:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 06:41:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 07:40:56 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 1NIzBQ-00062f-2L for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 07:40:56 +0100 Original-Received: from localhost ([127.0.0.1]:59478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIzBP-0005K2-PE for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 01:40:55 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.rawbandwidth!news.posted.rawbandwidth.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 11 Dec 2009 00:18:46 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:Vh3tnlxVIA0vP9yQR/aYrPOt8PU= Original-Lines: 39 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 198.144.208.84 Original-X-Trace: sv3-rQwhKwfRy8WEP8bS0tfQJkpm5EG/8mPE4QdAPcsP9YOPzcMnTTSawH0o3dDrLJmSuKtKD4zvyB3KXsG!ivC12+XmXjQxoZXuz3meL/0XGjpIoX5UprrtB6zXCHwgNnyYWljmmgwpZBY5dQPaNY2RZBV9/MQ= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:175507 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:70584 Archived-At: Lennart Borgman writes: > Joseph Brenner wrote: >> I don't know anything about mumamo: mmm-mode works well enough that I've >> never seen any need to try any of the other ways. Actually, mmm-mode seems to have a lot of problems with cvs emacs these days. I was asking Alan Shutko about it, and he offered to make me the maintainer... I can't see taking on the job myself just now though (I know nothing about "overlays" except what it says in the elisp reference manual). > 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? > 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. Also there are other, older conventions: I've seen *.mc and *.mas in use (*.mas was used in the O'Reilly book on Mason).