From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: narrow-to-here-document Date: Mon, 30 Jun 2003 08:13:51 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84r85cw0rk.fsf@lucy.is.informatik.uni-duisburg.de> References: <20030620141028.GA1331@math.berkeley.edu> <20030621.012632.74543482.jet@gyve.org> <3EF73468.1030503@yahoo.com> <20030625.151015.68035851.jet@gyve.org> <87k7b9vvs1.fsf@wesley.springies.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056956037 5091 80.91.224.249 (30 Jun 2003 06:53:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2003 06:53:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 30 08:53:54 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 19WsXy-0001Jm-00 for ; Mon, 30 Jun 2003 08:53:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19WseJ-0002aD-00 for ; Mon, 30 Jun 2003 09:00:27 +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 19WsYN-0003jS-Cb for emacs-devel@quimby.gnus.org; Mon, 30 Jun 2003 02:54:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19WsXX-0002pw-Ao for emacs-devel@gnu.org; Mon, 30 Jun 2003 02:53:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19WsXH-0002Mp-21 for emacs-devel@gnu.org; Mon, 30 Jun 2003 02:53:12 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19WsX9-0002Ep-JM for emacs-devel@gnu.org; Mon, 30 Jun 2003 02:53:03 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WsWh-0001F4-00 for ; Mon, 30 Jun 2003 08:52:35 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19WsWg-0001Eq-00 for ; Mon, 30 Jun 2003 08:52:34 +0200 Original-Lines: 26 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:ARHP8xOjO57jp2dUv3MpEN93mQA= 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:15325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15325 Alan Shutko writes: > David Kastrup writes: > >> 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. I've been wondering if a workable alternative would be to make the point motion functions look at a variable. If the variable is set, they ignore text with a certain property. Suppose that we set the (hypothetical) text property `language' to `c' on all the C bits, and then we let-bind the variable to the value `c'. Then all point motion commands would skip all text where the text property language is not set to c. So backward-char, for example, would skip all that text. This *might* cause the C mode syntax parsing functions to do the right thing out of the box, since they can't look at the non-C parts anymore. But I don't know if it really works, it's just an idea. -- ~/.signature