From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.devel Subject: Re: narrow-to-here-document Date: Sat, 21 Jun 2003 07:19:30 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030621141929.GB4179@math.berkeley.edu> References: <20030620.225909.39171959.jet@gyve.org> <20030620141028.GA1331@math.berkeley.edu> <20030621.012632.74543482.jet@gyve.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056205429 20618 80.91.224.249 (21 Jun 2003 14:23:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2003 14:23:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jun 21 16:23:44 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19TjHM-0005MC-00 for ; Sat, 21 Jun 2003 16:23:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19TjJT-0007hr-00 for ; Sat, 21 Jun 2003 16:25:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TjH5-000074-2o for emacs-devel@quimby.gnus.org; Sat, 21 Jun 2003 10:23:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19TjGP-0007ej-Aq for emacs-devel@gnu.org; Sat, 21 Jun 2003 10:22:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19TjFv-00077d-GD for emacs-devel@gnu.org; Sat, 21 Jun 2003 10:22:16 -0400 Original-Received: from gold.math.berkeley.edu ([169.229.58.61] helo=Math.Berkeley.EDU) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TjDI-0005nM-WE; Sat, 21 Jun 2003 10:19:33 -0400 Original-Received: from powdermilk.math.berkeley.edu (powdermilk [169.229.140.13]) by Math.Berkeley.EDU (8.12.9/8.12.8) with ESMTP id h5LEJUST009653; Sat, 21 Jun 2003 07:19:30 -0700 (PDT) X-Authentication-Warning: gold.math.berkeley.edu: Host powdermilk [169.229.140.13] claimed to be powdermilk.math.berkeley.edu Original-Received: (from ilya@localhost) by powdermilk.math.berkeley.edu (8.9.3/8.9.3) id HAA04195; Sat, 21 Jun 2003 07:19:30 -0700 (PDT) Original-To: dak@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Original-cc: cperl@ilyaz.org Original-cc: "Stephen J. Turnbull" Original-cc: Masatake YAMATO X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15182 On Sat, Jun 21, 2003 at 10:01:31AM +0200, David Kastrup wrote: > TeX is one particular contestant. There are forms of "Literate > Programming" with a heavy mixture of code and comments, but every > reference manual contains C code passages, shell scripts and similar > stuff. An excerpt: TeX has no HERE documents. Period. There are *programming styles* in TeX (as far as can call fighting with TeX deficiencies programming ;-[) which provide a poor-man approximations to HERE documents. However, the target of the discussion is how to add mode-specific functions which find boundaries of the given HERE documents. The problem with TeX is that given no standard way to define HERE docs, one cannot define such a function - without loading of some highly specialized minor modes. Hmm, maybe one can do as I did with indentation styles in Perl: they may be loaded from a menu, so it is easy to change it on a document-by-document base. Ilya