From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: PHP mode in Emacs? Date: Mon, 01 May 2006 18:36:21 +0200 Message-ID: <44563905.5010605@student.lu.se> References: <4456222F.9030401@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146501420 24374 80.91.229.2 (1 May 2006 16:37:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 16:37:00 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , emacs-devel@gnu.org, Peter Heslin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 18:36:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FabOG-0007Dl-IH for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 18:36:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FabOF-00061T-UI for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 12:36:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FabNt-0005vk-Nc for emacs-devel@gnu.org; Mon, 01 May 2006 12:36:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FabNr-0005up-AI for emacs-devel@gnu.org; Mon, 01 May 2006 12:36:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FabNr-0005ul-5G for emacs-devel@gnu.org; Mon, 01 May 2006 12:36:27 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FabRh-0005zh-50 for emacs-devel@gnu.org; Mon, 01 May 2006 12:40:25 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.070) id 4444940C0032979F; Mon, 1 May 2006 18:36:21 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Stefan Monnier In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53734 Archived-At: Stefan Monnier wrote: >> I can really see no way to stop different modes from stomping at each other >> with mmm-mode. >> > > That's a failure of imagination; you seem to assume major modes are free to > do whatever they want, but that's not the case: they can technically do what > they want, but it can lead to various problems which are then considered > as bugs in the major mode. > > So all we need to do is to come up with a kind of convention for how the > major modes should be written such that they cooperate well with mmm-mode. > > > Stefan > Yes, you are right. I thought I was suggesting something like that when I wrote about regions or list of regions for a major mode. Maybe we could suggest an interface for telling the major modes (or minor modes) where to apply themselves? That would be a minimum I guess.