From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Mon, 10 Aug 2009 08:46:51 +0200 Message-ID: <7b501d5c0908092346w73956950q9ef3090ba9ddf3a2@mail.gmail.com> References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <5683A82C-C186-45EB-9290-76F87859E353@merrillpress.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249886832 10595 80.91.229.12 (10 Aug 2009 06:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 06:47:12 +0000 (UTC) Cc: Lennart Borgman , Daniel Colascione , Leo , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 08:47:04 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 1MaOeu-0007Bu-CF for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 08:47:04 +0200 Original-Received: from localhost ([127.0.0.1]:56522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaOet-0000Ce-7I for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 02:47:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaOeo-0000CH-3K for emacs-devel@gnu.org; Mon, 10 Aug 2009 02:46:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaOej-0000Bg-BX for emacs-devel@gnu.org; Mon, 10 Aug 2009 02:46:57 -0400 Original-Received: from [199.232.76.173] (port=39249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaOej-0000Bd-6i for emacs-devel@gnu.org; Mon, 10 Aug 2009 02:46:53 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:56022) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MaOei-00023R-Hz for emacs-devel@gnu.org; Mon, 10 Aug 2009 02:46:52 -0400 Original-Received: by ewy7 with SMTP id 7so3043680ewy.42 for ; Sun, 09 Aug 2009 23:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=r2sj04Em0AImZS52vpqSC3VabDOHdAd6xdQ6vux9hIQ=; b=qy1nYnNRWaefSfIl07vL1DZEnVX9oQ/DyCbryJ/c3t3IzhiOJyK2iZqCnN1TZdm/VT iE/2OEwzvxQrKpgMPm2rX33DvEUzn4qLh2Y64AJaMMR00UsMa9NMl6s7Z9vpeF6BD6rr LYJi4DDvVBgQK0s15a1xZi1OvtAzG7xh9Et68= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NX/tvKQz1hiX8qQSijplmJbWKlfiWwgUC/Z8yhQapjEzZTPl5m3mwn311Fe8NpmJWZ zXAj+7dvDpeaoI3fA4aMikiiJz8hiv3gyfBsPC9OG5H19DKu18wNo7oR3vR9BINIAWAF tm22vKx3ASqAPxucCLqo+ztFmxOD0Gk8q0vhg= Original-Received: by 10.210.139.9 with SMTP id m9mr2635822ebd.79.1249886811417; Sun, 09 Aug 2009 23:46:51 -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:113947 Archived-At: 2009/8/10 Stefan Monnier : >>> Why not fix bugs in js2-mode? Having two packages providing similar >>> features is a burden to maintainers as well as users. > >> Because js2-mode is an abomination? Oh, it's not so bad that it's slow >> and unmaintained: that description applies to lots of code in Emacs. >> The problem is that js2-mode operates fundamentally differently from >> other modes, eschews font-lock, parses the buffer *asynchronously*, >> and generally goes against every possible convention for implementing >> a major mode. > > Here's the story as I remember it: a year or two ago, someone asked for > a Javascript major mode to be included. =A0It sounded like a good idea, > and some people pointed out the then-brand-new js2-mode which was pretty > impressive featurewise. > Then time passed and js2-mode didn't get installed early enough. =A0So it > finally got installed recently. =A0I think it's good. =A0AFAIK its author= is > still around and maintaining it (he's the one who installed it into the > CVS and he made some changes at this occasion, such as bringing all the > code into a single file). > So I do believe js2-mode is maintained. =A0Also, while it it unusual, > I think it's a very interesting experiment in how Emacs could evolve > (similarly to CEDET). Yes, it seems to be maintained now. Last time I checked a new version had not been released for a year or so. > This also means that an alternative javascript-mode might be acceptable. > But you guys need to agree on which one will be the default mode (I > suggest to make auto-mode-alist bind *.js files to javascript-mode and > then make that into an alias that can easily be changed). =A0Also the > alternative mode needs to be as lean/simple/clean as possible (e.g. when > bumping into limitations of the generic Emacs support code, it'd be > better to live with it until it gets fixed (and/or get the generic code > fixed) than trying to work around it). I see no reason to make javascript-mode the default for JavaScript files. I definitely think espresso-mode would be a better choice, even though users would have to see "Espresso" in the mode line, which could possibly confuse some people, but that's the only drawback as far as I'm concerned. What I would really *not* like to see though is js2-mode as the default. --=20 Deniz Dogan