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 22:11:12 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84n0fzwckf.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> <84r85cw0rk.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057015292 22841 80.91.224.249 (30 Jun 2003 23:21:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2003 23:21:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 01 01:21:30 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 19X7pC-00058Y-00 for ; Tue, 01 Jul 2003 01:12:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19X7vr-0003jb-00 for ; Tue, 01 Jul 2003 01:19:35 +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 19X7mv-0003To-5u for emacs-devel@quimby.gnus.org; Mon, 30 Jun 2003 19:10:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19X7gy-0002au-F8 for emacs-devel@gnu.org; Mon, 30 Jun 2003 19:04:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19X7ex-00022T-4s for emacs-devel@gnu.org; Mon, 30 Jun 2003 19:02:07 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19X50p-0008Mm-C3 for emacs-devel@gnu.org; Mon, 30 Jun 2003 16:12:31 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19X4zJ-0007yv-00 for ; Mon, 30 Jun 2003 22:10:57 +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 19X4zA-0007xw-00 for ; Mon, 30 Jun 2003 22:10:48 +0200 Original-Lines: 20 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:b+nMiVn5K98VUyW05/W8rN20T3k= 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:15329 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15329 David Kastrup writes: > it is a reasonable assumption when programming that (1- (point)) and > (save-excursion (backward-char) (point)) are the same thing, > basically. It used to be that this was not the case. (In Emacs 20.2 I think.) I agree that it would be better if they were the same, but I can't think of a less disruptive method for having two major modes in the same buffer, and to allow the usual parsing functions for each of the modes to function more-or-less normally. Another approach might be to have two buffers, one for each mode, and to merge them into a third buffer. Then each command in the third buffer would be actually executed in one of the two buffers. But this approach gives difficulties in finding out how to merge the two buffers. -- ~/.signature