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: web-mode.el Date: Wed, 13 Jun 2012 13:52:13 +0200 Message-ID: References: <874nqfslig.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1339588384 30940 80.91.229.3 (13 Jun 2012 11:53:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 11:53:04 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Bois Francois-Xavier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 13 13:53:03 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sem8D-0001br-EX for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 13:53:01 +0200 Original-Received: from localhost ([::1]:38419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sem8D-00023a-4o for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 07:53:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sem8A-00023T-OU for emacs-devel@gnu.org; Wed, 13 Jun 2012 07:53:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sem89-0008PF-0h for emacs-devel@gnu.org; Wed, 13 Jun 2012 07:52:58 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:41589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sem80-0008NQ-El; Wed, 13 Jun 2012 07:52:48 -0400 Original-Received: by lbjn8 with SMTP id n8so1441300lbj.0 for ; Wed, 13 Jun 2012 04:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+32TH/VJ7ZGF9ZYEahogYnxMw63kJ5bgf/hyggqRgQ4=; b=fY1XMFlPSdU/sl4cKs1YNjHQkk8x2NbMtnIUlG25BTRcR5tJOFfv+2OZNR3HCleF+G qnHHFUaG1VyFl2wfCQVue0BQY/q/uHxeNSrlbAJYdksbJqRAoB28ajqfdlLRaOZEsvhN Y5ypldUsqodPnsxgO3D3rk4z00mXX4fyxoq0lgtV12Gz4LR9vUX7Ap05uIl9s/A2rEwp 0Rz46FI1Iv2eI1kUn++HYkwmN5x1fDzBkSUcBoA4trDFvwqcOZ8JEzb0H/upNgLjcCRQ 8DeQiNPx19Ohcu9l3CWkWy0vbHvQjnWd3uDoMie6jItEHBKtB8bO1+W0ooZh7iIxvfIn cRPA== Original-Received: by 10.152.122.116 with SMTP id lr20mr23507308lab.42.1339588363275; Wed, 13 Jun 2012 04:52:43 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Wed, 13 Jun 2012 04:52:13 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.217.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150921 Archived-At: On Wed, Jun 13, 2012 at 1:43 PM, Bois Francois-Xavier wrote: >> It would be very nice if those functions for PHP would be available as >> a major mode. Then it could immediately be used in a lot of other >> combinations with nXhtml/MuMaMo. >> >> I guess you have written the parsing functions so that they do not >> cross the chunk boundaries. Or, do I misunderstand that? If you have >> done that then perhaps a major mode for PHP could use that and make it >> available in some way to multi major modes frameworks? > > But I think you would be disappointed by the few cases I handle for > PHP. I have written a mode for templates. In an HTML template I don't > expect people to declare function, declare classes, use exceptions > etc. All those cases are not properly handled by my mode. I don' > really "parse" PHP code ... it is more rules like ... "if the previous > line ends with { then I indent". By contrast, the parsing is much > stronger/powerful for HTML. Thanks Bois, I see. This kind of limitations is one of the reasons I think a general multi mode framework should be used. The the full power of the Emacs' major modes can be used. (But see my previous messages for the current status of this.)