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: Tue, 12 Jun 2012 15:24:28 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339507524 17512 80.91.229.3 (12 Jun 2012 13:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2012 13:25:24 +0000 (UTC) Cc: Emacs-Devel devel To: Bois Francois-Xavier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 12 15:25:23 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 1SeR61-0002fu-Fx for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 15:25:21 +0200 Original-Received: from localhost ([::1]:50213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeR61-0003nt-Bu for ged-emacs-devel@m.gmane.org; Tue, 12 Jun 2012 09:25:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeR5r-0003nj-Qp for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:25:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeR5h-0002xt-OG for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:25:11 -0400 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:46325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeR5h-0002tK-Di for emacs-devel@gnu.org; Tue, 12 Jun 2012 09:25:01 -0400 Original-Received: by lahi5 with SMTP id i5so4515477lah.0 for ; Tue, 12 Jun 2012 06:24:58 -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:content-transfer-encoding; bh=CmweSm0UKP38QcFGsycz8nDLhDKgAv+z+oC8Cdvczhs=; b=FFeym+YiF9NdJvhj8AYt+HlQv5klFjINgKK1syZJtjrJf4y151tAfTaIkzb5i0VdDg Nrmh56CjUKhESdXQbcBTaUxcMPPPnPCcofzHOyBNa9pQGrLgJfMmqraxfCXSP9ep3IGw uzohKU74TfyBuvkQfS1JcIHwnH0JZMpOztSm4R9NOpgUfH1A8jV4SY+CORCNEPDSg8qC MgDnqxa/9Wa4jvCEjIfIzq3P4030L9+uVxB+eIK+CBJbxoB+s9BuCjEEPzOeJWaIZwLo htyoc8y472S/pQKhUPQ7YAe/bMg821Zsuj0QL8buCTqqKpoyXKYc1cJrIq36xPn2Oe+L +Xlg== Original-Received: by 10.112.45.168 with SMTP id o8mr4592101lbm.88.1339507498713; Tue, 12 Jun 2012 06:24:58 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Tue, 12 Jun 2012 06:24:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.41 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:150906 Archived-At: On Tue, Jun 12, 2012 at 1:54 PM, Bois Francois-Xavier wr= ote: > Dear Lennart > > Thank you for your mail. > Yes before starting this project I tried almost all alternative and > none of them really fully worked for me. I am, as you probably know, the author of nXhtml. It includes MuMaMo, a general framework for editing files where different Emacs' major modes can be useful for different parts of the files. (Which I call chunks there.) This approach can not be implemented in a perfect way as Emacs works now. However implementing special solutions for different problems would in my opinion be just too much work. Maintenance would take very much time. So I wonder if you perhaps could tell what problems you saw in nXhtml (in this regard) and look into if you could fix them? > That's why I started this > project ; I use it now almost every day for a few months and I would > like to share it now. > Features that were really important for me were : > =C2=A0- indentation (in particular, HTML elements, HTML attributes, PHP > arrays on multilines) > =C2=A0- coh=C3=A9rent syntax highlighting (according to the context) > =C2=A0- HTML element navigation > =C2=A0- maintainability > =C2=A0- speed > > Have you tried this mode ? > > On Tue, Jun 12, 2012 at 1:37 PM, Lennart Borgman > wrote: >> On Tue, Jun 12, 2012 at 12:24 AM, Bois Francois-Xavier wrote: >>> >>> Dear Emacsians, >>> >>> I've written web-mode.el, a major mode for PHP/HTML templates files. >>> It aims to natively indent and syntaxcolor according to the "context" >>> of (point) (which can be in an HTML part or in a PHP/JavaScript/CSS >>> bloc). >>> As it is my first experience with emacs lisp programming, I would be >>> really grateful to receive your feedbacks on any aspect of this mode >>> (core programming, function/var naming, conventions, etc.). For many >>> aspects, I wonder if I use hacks or correct ways to do the job (ex. I >>> look at the face name in my indent function to know if (point) is in a >>> comment or a string). >>> The mode is available here: >>> http://fxbois.free.fr/lisp/web-mode.el >>> >>> I will also publish a web page which will look like this: >>> http://fxbois.free.fr/lisp/web-mode.html >>> >>> Perhaps you also have comments about it. >> >> Dear Bois, have you compared the functionality in web-mode.el with >> that you can get with nXthml? (See EmacsWiki for links.) > > > > -- > Fran=C3=A7ois-Xavier BOIS > KerniX Software > 15, rue Cels > 75014 PARIS > tel : 01 53 98 73 43 > fax : 01 53 98 73 45