From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: PHP mode in Emacs? Date: Mon, 01 May 2006 18:51:26 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <4456222F.9030401@student.lu.se> <44563905.5010605@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 1146502356 27663 80.91.229.2 (1 May 2006 16:52:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 16:52:36 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 18:52:33 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 1FabdM-0001U1-5J for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 18:52:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FabdL-0008GG-L8 for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 12:52:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fabcy-00086U-7Z for emacs-devel@gnu.org; Mon, 01 May 2006 12:52:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fabcw-00084s-2U for emacs-devel@gnu.org; Mon, 01 May 2006 12:52:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fabcv-00084a-At for emacs-devel@gnu.org; Mon, 01 May 2006 12:52:01 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fabgl-0007Fz-V5 for emacs-devel@gnu.org; Mon, 01 May 2006 12:56:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fabcp-0001PM-D9 for emacs-devel@gnu.org; Mon, 01 May 2006 18:51:55 +0200 Original-Received: from quimbies.gnus.org ([80.91.231.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 18:51:55 +0200 Original-Received: from larsi by quimbies.gnus.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 18:51:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: quimbies.gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEVvbGmEf1yCfoKkqFHF umHKw3qrqaW/vMC8xZnBvb7Cv8HPzJ7q5+mAAr9mAAAACXBIWXMAAABIAAAASABGyWs+AAAB+ElE QVQ4y32TsY7TQBCGtwoNTeQm5YmTEEpnjREWlPbRhO6uO4pTkGzJpEAURorSoBWQgke44nRIMbc3 b0BKtIG9eShmbe9mnQNGya60n+ef+WdtAV0kkEGen5ALFBBHHcqyp3e0D2GPJf8ygBmFQMYAx1La lBcD8B0iiJ6l98E3SCdyLcesl2xDACnIdP0RUk46D0GSpseTJ6k8lZ/gZJBhu5Jy/TkHyA9ADm9Y 0DoMioi4dRdF7DOBV/7ciH4k3DQk+WwgFTkWzopBpwVxzCCozgZ7wEp5/noPfoGPLAnBnW3XXcrs nIwD9DP3AL7+IEQH6Oy0LxK1Phzg/bY7TyVwib0Ux1lm3UwAMMjotu2thFjCIsjYtg+hOYrHX14+ pO3NIOPtvBRH4+f1qBjdTDEATVGLixFVFenrusY90GUhioqwJKpWj8lcOoBVUdCKcEekDD/wuweX dFE+styCmtrWBPUdzldISwaofFfdG1sy3uyC+0CrxPGA/1daOePOOe2mvNSaFB0As+Rlo5eLQ2Cl 3m10ON3+a2Fv9F4Px97Ws+JXhQcoTA8Mr/WHAHR7hYgK5wt/UQzsYGyG0aQrY1AxbQz6Giy0o6l/ p9G3y7Nvau/C2K5Mn1Goaw/a4obuh6GgxiBQDE+NUqppymVFgv4a5j8A/wH+AMjBz9BolQSXAAAA AElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Static's _Re: Talking About Memories_: "Point Of Hope" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:P1Dzpow67t+nZQ+NyGoc+SlixLw= 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:53735 Archived-At: Lennart Borgman writes: > 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. Well, major modes have basically two major areas of interest: key maps and syntax highlighting. Key maps are trivial to do on regions -- you just use key map text properties. Syntax highlighting is also pretty easy to deal with using text props. Now, of course you're going to find major modes that will misbehave, and act on text way outside where you're editing, but I think those functions are actually pretty rare (in the wider scheme of things), and can be fixed. Looking over the mmm code, it seems to be solving most of what we want, although it is somewhat invasive as it stands. As Stefan says, the major modes should be fixed to work in an mmm-ified atmosphere; not the other way around. For that to happen, we need mmm (or something like it) in Emacs. But it's starting to sound like nobody has actually been in touch with the mmm people. Perhaps I should drop them an email and ask their opinion on the matter? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen