From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Why js2-mode in Emacs 23.2? Date: Sun, 9 Aug 2009 20:06:56 -0400 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249862850 29478 80.91.229.12 (10 Aug 2009 00:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 00:07:30 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 02:07:23 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 1MaIQ5-0006S5-AU for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 02:07:21 +0200 Original-Received: from localhost ([127.0.0.1]:38593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaIQ4-0003v2-Qv for ged-emacs-devel@m.gmane.org; Sun, 09 Aug 2009 20:07:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaIPo-0003jL-PP for emacs-devel@gnu.org; Sun, 09 Aug 2009 20:07:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaIPk-0003h6-4U for emacs-devel@gnu.org; Sun, 09 Aug 2009 20:07:04 -0400 Original-Received: from [199.232.76.173] (port=56482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaIPk-0003gz-15 for emacs-devel@gnu.org; Sun, 09 Aug 2009 20:07:00 -0400 Original-Received: from vpn.merrillpress.com ([64.61.107.78]:52321) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MaIPj-0001QI-FA for emacs-devel@gnu.org; Sun, 09 Aug 2009 20:06:59 -0400 Original-Received: from cpe-67-246-181-235.buffalo.res.rr.com ([67.246.181.235] helo=[192.168.1.103]) by mars.merrillpress.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1MaIPh-0002rD-PK; Sun, 09 Aug 2009 20:06:57 -0400 In-Reply-To: X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:113904 Archived-At: On Aug 9, 2009, at 8:00 PM, Lennart Borgman wrote: > On Mon, Aug 10, 2009 at 1:58 AM, Daniel Colascione > wrote: >> >> ;; Important to fontify the whole buffer syntactically! > > Ah, yes, that was what broke it in mumamo. Could you please find a way > to fix this? There a different levels of fontification in JIT-lock > that probably can help. It's not really JIT-lock's fault. It's that regular expressions are not stringified until they're seen by JIT-lock. Instead of using syntactic-keywords to mark regular expressions, we could scan the buffer manually. But that would cause exactly the same problems that the fontificaton call would, if I understand correctly. Is there another way to solve the problem? Can mumamo tell espresso to ignore certain parts of the buffer? > Other things to look for are of course key bindings and using > define-derived-mode. (And probably more that I have forgotten.) Keybindings are standard, IIRC. espresso-mode does override the normal tag binding, but it implements the same functionality in a different way. That sort of keybinding is explicitly allowed. As for define-derived-mode: nope, espresso-mode doesn't use that.