From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Strange problem with latest CVS Date: Fri, 09 Apr 2004 18:44:46 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040407.194947.101661727.jet@gyve.org> <20040408.204537.177222368.jet@gyve.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1081551012 16394 80.91.224.253 (9 Apr 2004 22:50:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2004 22:50:12 +0000 (UTC) Cc: romain@orebokech.com, matt@stchem.bham.ac.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Apr 10 00:50:07 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BC4p4-0005Zr-00 for ; Sat, 10 Apr 2004 00:50:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BC4p4-0003Rj-00 for ; Sat, 10 Apr 2004 00:50:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BC4oC-0003uz-Br for emacs-devel@quimby.gnus.org; Fri, 09 Apr 2004 18:49:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BC4kz-0001mb-FN for emacs-devel@gnu.org; Fri, 09 Apr 2004 18:45:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BC4jw-00011v-Ky for emacs-devel@gnu.org; Fri, 09 Apr 2004 18:45:21 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BC4jv-00010B-0p for emacs-devel@gnu.org; Fri, 09 Apr 2004 18:44:47 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BC4ju-0005Ip-7F; Fri, 09 Apr 2004 18:44:46 -0400 Original-To: Masatake YAMATO In-reply-to: <20040408.204537.177222368.jet@gyve.org> (message from Masatake YAMATO on Thu, 08 Apr 2004 20:45:37 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21412 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21412 + make_empty = 1; + tem = startpos; + startpos = endpos; + endpos = tem; It is a bit convoluted, and I suspect it could be done more simply. However, if it fixes the bug, please install it. The biggest question is that whether I should use overlay-start or overlay-end to make an overlay empty. It may not make much difference, but I think it is better to use overlay-end. That is the earlier address in this case, and the result will be that the overlay stays before the inserted text. However, I wouldn't say that the other choice is wrong. In this bizarre situation, the best we can hope for is to keep things consistent, one way or another.