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, 19 Jun 2012 12:39:36 +0200 Message-ID: References: <4FD9F40C.90406@yandex.ru> <4FDA927D.50306@yandex.ru> <4FDC89B7.3050907@yandex.ru> <4FDFCF27.8000309@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1340102741 12634 80.91.229.3 (19 Jun 2012 10:45:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 10:45:41 +0000 (UTC) Cc: cyd@gnu.org, emacs-devel@gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 12:45:40 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 1SgvwJ-0005je-4S for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2012 12:45:39 +0200 Original-Received: from localhost ([::1]:33356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgvwF-0006jU-Qc for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2012 06:45:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgvw8-0006jA-NN for emacs-devel@gnu.org; Tue, 19 Jun 2012 06:45:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sgvw7-0000ze-6V for emacs-devel@gnu.org; Tue, 19 Jun 2012 06:45:28 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:41598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgvvx-0000w8-Vi; Tue, 19 Jun 2012 06:45:18 -0400 Original-Received: by lbjn8 with SMTP id n8so6722569lbj.0 for ; Tue, 19 Jun 2012 03:45:14 -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=+HwxRZ8Vy5y6RGd5LMyG0jdOrMPZrBEiHq9D8tAIyCc=; b=r0Ubb1UaOmXr1XuTY21RFq3/Qet7ZaQR4LFixrsh1wfWeQgvj1mWlcvIUo1707jZD1 zR387Lf0MlxunxE4KA3RL9tcl5A5GN93Pfu3zOkWHysF9G7jVk+J/4CoYqzanjIrlfpJ kz5hAPaOZ1+jlvi+KN8g0MBLhVt9MKgUV1EiU2iBdy3jOAA8cHQJDKX+BCVPVy8j+PiZ TX6EQf0cEpLX5E4g3v1RhJbVr4vW6ZXX7ZDT5uYZ2DMpBmIw0ELJ7b2oFYwxB02NJdHF 6IOA2qaWm3TN5im6ubEH9oX8FsGSDFMmHsJQ4JOog0ytQIapAu9+eqzeLyo3etfruCEh gF6w== Original-Received: by 10.112.85.42 with SMTP id e10mr7652419lbz.17.1340102407897; Tue, 19 Jun 2012 03:40:07 -0700 (PDT) Original-Received: by 10.112.41.99 with HTTP; Tue, 19 Jun 2012 03:39:36 -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:151017 Archived-At: On Tue, Jun 19, 2012 at 5:09 AM, Stefan Monnier wrote: > >> It occurs to me that, once the supported interface is established, >> introducing new syntax-table value becomes not strictly necessary because, >> for example, a version of Lennart's `with-chunks' macro can be implemented >> in Lisp by applying whitespace or comment-starter/ender syntax to foreign >> chunks around the body calls (idea from mmm-noweb). >> Is that right? > > That's right as long as you're willing to dynamically modify the buffer > (with syntax-table text-properties) every time you move from one chunk > to another. > > If you have many chunks, that can be a problem. My idea with (with-chunks chunk-table ...) that chunk-table contains this information instead. Then it can be cashed by the multi major mode framework.