From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Sun, 9 Aug 2009 22:51:01 -0700 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <5683A82C-C186-45EB-9290-76F87859E353@merrillpress.com> Reply-To: xahlee@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364578cebe404d0470c32b8b X-Trace: ger.gmane.org 1249883488 4142 80.91.229.12 (10 Aug 2009 05:51:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 05:51:28 +0000 (UTC) Cc: Daniel Colascione , Lennart Borgman , Emacs-Devel devel , Stefan Monnier , Deniz Dogan , Leo To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 07:51:20 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MaNmy-00015R-Dv for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 07:51:20 +0200 Original-Received: from localhost ([127.0.0.1]:39021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaNmx-0002pW-U7 for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 01:51:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaNmo-0002pR-OH for emacs-devel@gnu.org; Mon, 10 Aug 2009 01:51:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaNmk-0002pF-SA for emacs-devel@gnu.org; Mon, 10 Aug 2009 01:51:10 -0400 Original-Received: from [199.232.76.173] (port=58204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaNmk-0002pC-Na for emacs-devel@gnu.org; Mon, 10 Aug 2009 01:51:06 -0400 Original-Received: from mail-pz0-f197.google.com ([209.85.222.197]:37187) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MaNmi-0006lA-2Q; Mon, 10 Aug 2009 01:51:04 -0400 Original-Received: by pzk35 with SMTP id 35so2758851pzk.24 for ; Sun, 09 Aug 2009 22:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=8gBxTqXWx1KV0EGzZrf2/oskeKPxW1nu60k0GUzdHqc=; b=tbMJM/aAn2CbLTl/dpt6rwEN3UF2yUW8SZO3s6lAGh93hfEBeYOFZjFHjZHt5pDxSh s+BGbNUXBqGtttf6ULLTwUzQFdqfHUbR9FgIfs0JXhCM1MBo099fpGpGVL8zuuQozXx3 r8+WyOIXvY76sTtbTcwcQs9qHhSqtvo3Sxhcg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=QsRX4IRZCgWBhCorcDMMEtlTCRRZkfotCgp/ytSEJczMMnMJMIaw50DbPBqbbukG/e ahslz0T+kQL1ndkp5j5Zv6JUwrjd92f/zJWr3w9BA9SpU1OP1OunKVUXEALjCObvx4AD ufUN2rZPz8dzjPOjPqYYu8ztVSav7Gkk2hjrc= Original-Received: by 10.114.102.16 with SMTP id z16mr5811719wab.35.1249883461664; Sun, 09 Aug 2009 22:51:01 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:113944 Archived-At: --0016364578cebe404d0470c32b8b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Aug 9, 2009 at 8:24 PM, Miles Bader wrote: > Stefan Monnier writes: > > So I do believe js2-mode is maintained. Also, while it it unusual, > > I think it's a very interesting experiment in how Emacs could evolve > > (similarly to CEDET). > > "Evolve"? Is js2-mode's roll-everything-from-scratch code better than > the existing infrastructure that it ignores (e.g. font-lock)? I'll have to agree with Stefan. js2, nxml, they are fundamentally different than traditional emacs modes, i= n that each have a parser that fully understands the languages at syntax level. emacs's syntax coloring is based on text pattern matching. It might work faster or more smooth right now, but from technology point of view, its one generation behind. of the 2 approach, the full parser is also a order more difficult to write. it'd be nice if emacs provides syntax parsing infrastructure.... nmxl, js2, cedet, can be leads in this direction and see how things work out. Including expesso-mode is also very good i think, as it provide tried and true solution that just works. my 2 =C2=A2. :) Xah --0016364578cebe404d0470c32b8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sun, Aug 9, 2009 at 8:24 PM, Miles Bader <miles@gnu.org> wrote:
Stefan Monnier <monnier@iro.= umontreal.ca> writes:
> So I do believe js2-mode is maintained. =C2=A0Also, while it it unusua= l,
> I think it's a very interesting experiment in how Emacs could evol= ve
> (similarly to CEDET).

"Evolve"? =C2=A0Is js2-mode's roll-everything-from-scratch co= de better than
the existing infrastructure that it ignores (e.g. font-lock)?
<= div>
I'll have to agree with Stefan.

=
js2, nxml, they are fundamentally different than traditional emacs mod= es, in that each have a parser that fully understands the languages at synt= ax level.

emacs's syntax coloring is based on text pattern ma= tching. It might work faster or more smooth right now, but from technology = point of view, its one generation behind.

of the 2= approach, the full parser is also a order more difficult to write.

it'd be nice if emacs provides syntax parsing infra= structure.... nmxl, js2, cedet, can be leads in this direction and see how = things work out.

Including expesso-mode is also ve= ry good i think, as it provide tried and true solution that just works.

my 2 =C2=A2. :)

=C2=A0=C2=A0Xa= h
=C2=A0
--0016364578cebe404d0470c32b8b--