From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Shutko Newsgroups: gmane.emacs.devel Subject: Re: narrow-to-here-document Date: Thu, 26 Jun 2003 08:00:14 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87k7b9vvs1.fsf@wesley.springies.com> References: <20030620141028.GA1331@math.berkeley.edu> <20030621.012632.74543482.jet@gyve.org> <3EF73468.1030503@yahoo.com> <20030625.151015.68035851.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 1056932397 19710 80.91.224.249 (30 Jun 2003 00:19:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2003 00:19:57 +0000 (UTC) Cc: Stefan Daschek Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 30 02:19:55 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 19WmOh-00057U-00 for ; Mon, 30 Jun 2003 02:19:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19WmUu-0007Br-00 for ; Mon, 30 Jun 2003 02:26:20 +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 19WmOD-0005KZ-3s for emacs-devel@quimby.gnus.org; Sun, 29 Jun 2003 20:19:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19WmMu-0004my-Ha for emacs-devel@gnu.org; Sun, 29 Jun 2003 20:18:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19WmMW-00046z-Od for emacs-devel@gnu.org; Sun, 29 Jun 2003 20:17:42 -0400 Original-Received: from remt24.cluster1.charter.net ([209.225.8.34]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19WmMJ-0003c2-3s; Sun, 29 Jun 2003 20:17:27 -0400 Original-Received: from [24.107.193.134] (HELO wesley.springies.com) by remt24.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 78443378; Sun, 29 Jun 2003 20:17:26 -0400 Original-Received: from ats by wesley.springies.com with local (Exim 3.36 #1 (Debian)) id 19WmME-000128-00; Sun, 29 Jun 2003 19:17:22 -0500 Original-To: dak@gnu.org In-Reply-To: (David Kastrup's message of "26 Jun 2003 08:12:01 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Original-cc: emacs-devel@gnu.org 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:15322 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15322 David Kastrup writes: > AFAIR, it does not narrow, but merely switches major modes. As an > example, it won't be useful for a shell script as a here document in > a shell script. Actually, it doesn't just switch major modes, it does a lot of work putting variables on text properties so that it can try to get everything right. It is useful for here documents, although I don't know why it would be less useful for a shell script as a here document in a shell script. > And indentation and stuff will look beyond the beginning of the > language area. This is a problem. For most modes it doesn't matter, but for CC mode it can cause weirdness. That's an ongoing problem, but narrowing doesn't help, since CC mode widens before it parses the buffer. -- Alan Shutko - I am the rocks. Looking for a software developer in St. Louis? http://web.springies.com/~ats/