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: Mon, 2 Nov 2009 00:14:40 +0100 Message-ID: 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257117338 26712 80.91.229.12 (1 Nov 2009 23:15:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2009 23:15:38 +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 Mon Nov 02 00:15:31 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 1N4jdy-00054J-1l for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 00:15:30 +0100 Original-Received: from localhost ([127.0.0.1]:53141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4jdx-0007jK-7n for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2009 18:15:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4jdb-0007iq-OU for help-gnu-emacs@gnu.org; Sun, 01 Nov 2009 18:15:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4jdW-0007iJ-EV for help-gnu-emacs@gnu.org; Sun, 01 Nov 2009 18:15:06 -0500 Original-Received: from [199.232.76.173] (port=54125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4jdW-0007iD-4V for help-gnu-emacs@gnu.org; Sun, 01 Nov 2009 18:15:02 -0500 Original-Received: from mail-yw0-f194.google.com ([209.85.211.194]:38347) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4jdV-0007ZM-SL for help-gnu-emacs@gnu.org; Sun, 01 Nov 2009 18:15:01 -0500 Original-Received: by ywh32 with SMTP id 32so4313850ywh.14 for ; Sun, 01 Nov 2009 15:15:00 -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=evAogorbBki/IzjpdO9sap39q2ud0Iibo7P6NwKCmvA=; b=gQ1RK1WfbFMjE8hih6LWtujsGTldFcmFRoe2vQCe4koZboOi3dhjQOJS/Hu/3O3Dro blx47HFHgP4T7t8THTqKCqesBamux151NCYzkhF1NuOba4KgDN3IkD0pHGTTC8mkkkIU PAd8ATdeL/kCqPI+bNl1Thwt6lfrmNuTMAmvU= 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=N0HwwxfiPbY+FAnCzHDIPlZ6BbXZJaFJzofDKYyP7TENY0U/JgoJez3jBToqASFudm +v0p7Klg9XNgl4QiiWckExmUyq+uxqDDlpHcsd+cHSCiPuvdQILNLuQYoiAbreZl5Od+ NaOmLRyuXHtH+X0jy492gKl1Du6EvecvNTP8A= Original-Received: by 10.101.6.23 with SMTP id j23mr2618021ani.142.1257117300583; Sun, 01 Nov 2009 15:15:00 -0800 (PST) In-Reply-To: <87fx918sr7.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:69378 Archived-At: On Fri, Oct 30, 2009 at 4:28 AM, Joseph Brenner wr= ote: > > Lennart Borgman writes: >> Joost Kremers wrote: >>> Nordl=C3=B6w wrote: >>>> Does anyone though of an extension the enables a major-mode to exist >>>> only within a part of buffer along with another major-mode. Part is >>>> preferrably delimited by some magic strings. >>> >>> http://www.emacswiki.org/emacs/MultipleModes >> >> Pascal and Bastien, you recommended mmm-mode that is one of the >> alternatives on that list. I have for a long time wondered if it works >> with Emacs 22/23. Are you using it? > > I use mmm-mode sometimes. =C2=A0It works pretty well for Mason files (per= l > code embedded in html-like coding), which is what it was originally > designed for. =C2=A0I believe it's the oldest and probably most mature > multi-mode package. > >> Are there any features in it that you believe are missing in mumamo? > > 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. 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), but I would be glad if you or someone else that have been using mmm-mode tested it and gave some feedback. If you want to help with this then download the latest beta of nXhtml here: http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/ That is a zip file which you set up by simply adding one line to .emacs, se= e http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html#qg When you are in a Mason file turn do M-x mason-html-mumamo-mode to test it. (BTW, what file extensions do Mason files normally have?)