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 22:22:52 +0200 Message-ID: <44566E1C.5030505@student.lu.se> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146514993 6378 80.91.229.2 (1 May 2006 20:23:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 20:23:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 22:23:11 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 1FaevF-0001cZ-Iw for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 22:23:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaevF-0002WK-3a for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 16:23:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Faev3-0002Va-Rk for emacs-devel@gnu.org; Mon, 01 May 2006 16:22:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Faev2-0002VO-8i for emacs-devel@gnu.org; Mon, 01 May 2006 16:22:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Faev2-0002VL-3A for emacs-devel@gnu.org; Mon, 01 May 2006 16:22:56 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Faev2-0000Cj-1x for emacs-devel@gnu.org; Mon, 01 May 2006 16:22:56 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.070) id 444497C50033603B; Mon, 1 May 2006 22:22:52 +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:53743 Archived-At: Stefan Monnier wrote: >> Well, major modes have basically two major areas of interest: key maps >> and syntax highlighting. >> > > You forget a big one: indentation. > nxml-mode also checks the document against the DTD as you type in your text. And I believe that it also does syntax highlighting in a different way than other modes. Here is the explanation form nxml-mode.el: ;; The font locking here is independent of font-lock.el. We want to ;; do more sophisticated handling of changes and we want to use the ;; same xmltok rather than regexps for parsing so that we parse ;; consistently and correctly.