From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: PHP mode in Emacs? Date: Mon, 01 May 2006 12:17:52 -0400 Message-ID: References: <4456222F.9030401@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146500309 20430 80.91.229.2 (1 May 2006 16:18:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 16:18:29 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , Peter Heslin , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 18:18:25 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 1Fab6C-0004EX-MN for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 18:18:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fab6C-0001wD-3z for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 12:18:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fab61-0001w7-Gj for emacs-devel@gnu.org; Mon, 01 May 2006 12:18:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fab5z-0001uo-Aw for emacs-devel@gnu.org; Mon, 01 May 2006 12:18:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fab5z-0001uN-30 for emacs-devel@gnu.org; Mon, 01 May 2006 12:17:59 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fab9p-0004FI-GQ for emacs-devel@gnu.org; Mon, 01 May 2006 12:21:57 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 80CAE2CE9BA; Mon, 1 May 2006 12:17:58 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id B9C53445C; Mon, 1 May 2006 12:17:52 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id A5473722F1; Mon, 1 May 2006 12:17:52 -0400 (EDT) Original-To: Lennart Borgman In-Reply-To: <4456222F.9030401@student.lu.se> (Lennart Borgman's message of "Mon, 01 May 2006 16:58:55 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:53733 Archived-At: > I do not know whether it has been discussed, but it seems to me there are > currently unfortunately problems with this approach. I believe a number > of things have to be addressed in Emacs before something like mmm-mode can > work for all modes. But I am not sure, it is quite complex. Below are > however my thoughts about it. Making it work for all modes in not even a goal for me. I know there are some undesired interactions between mmm-mode and various major modes. We can fix them one by one. The problem of mmm-mode as it currently stands is that it tries to solve the problem only on its side, whereas in several cases it would be better to say "it's a bug in the major mode". But that's exactly what we could do if it were integrated in Emacs. > 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