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 18:08:29 +0100 Message-ID: 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 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260553766 15972 80.91.229.12 (11 Dec 2009 17:49:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2009 17:49:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joseph Brenner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 11 18:49:19 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 1NJ9cD-0000QW-27 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 18:49:18 +0100 Original-Received: from localhost ([127.0.0.1]:59541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJ9cC-0002jK-Ck for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Dec 2009 12:49:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJ8zA-0002Io-WD for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 12:08:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJ8z6-0002Gw-AZ for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 12:08:56 -0500 Original-Received: from [199.232.76.173] (port=46018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJ8z6-0002Gn-2Z for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 12:08:52 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:53829) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJ8z5-0005qH-B8 for help-gnu-emacs@gnu.org; Fri, 11 Dec 2009 12:08:51 -0500 Original-Received: by yxe29 with SMTP id 29so2777552yxe.14 for ; Fri, 11 Dec 2009 09:08:49 -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=ttHq0ZLocVAjyHd6lVIve3B2kwUL8naoJl81uSliW2w=; b=Jn6v8m41lqZw6CldH6xlIjJahr25mWK9zOe4AzY4AAdByiCsFOhDLikbskGqMZLGlK hkiZ7gUTC08x0qtzuH8p7bSkjGnJjeOHddUlWb+/vcWEflHPRvREZMhQrbwLCrho8PjO krr51ae6pcDt7o6j05Qbj5xmNF2G5/0Hg5odM= 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=gv6G7Vldcl7OklL4J7wzWX0b+0EfJ/bbKbZhKnb6Dt4H1fW735P3b/Q6B4OdPWVQDl oI2+wF3l4GTuPDixc0rqtL2B8PEQW0xBtaXEqu5Qf0NbIaWBmwzFzy91HwXaiIaNJp9I Z2ugdueHRydklh25KXTOsKMp6A+cDK0W5WleY= Original-Received: by 10.101.193.1 with SMTP id v1mr2558153anp.97.1260551329087; Fri, 11 Dec 2009 09:08:49 -0800 (PST) In-Reply-To: <87ljhaav81.fsf@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:70598 Archived-At: On Fri, Dec 11, 2009 at 7:19 AM, Joseph Brenner wr= ote: > > 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 >> >> =C2=A0 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. =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? >> 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: > > =C2=A0http://www.masonhq.com/?FAQ:ServerConfiguration#h-what_filename_ext= ensions_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. > Also there are other, older conventions: I've seen *.mc and *.mas in use > (*.mas was used in the O'Reilly book on Mason).