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: overlay-start > overlay-end Date: Wed, 24 Mar 2004 00:34:25 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040322.170035.233401763.jet@gyve.org> <20040323.174501.129085852.jet@gyve.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1080106942 13150 80.91.224.253 (24 Mar 2004 05:42:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2004 05:42:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 24 06:42:19 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 1B619f-0007Li-00 for ; Wed, 24 Mar 2004 06:42:19 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B619Y-0007i0-01 for ; Wed, 24 Mar 2004 06:42:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B619A-0004FS-Cz for emacs-devel@quimby.gnus.org; Wed, 24 Mar 2004 00:41:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B617M-0003VD-Rl for emacs-devel@gnu.org; Wed, 24 Mar 2004 00:39:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B616Y-0002W7-EJ for emacs-devel@gnu.org; Wed, 24 Mar 2004 00:39:38 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B616X-0002Ud-Dz for emacs-devel@gnu.org; Wed, 24 Mar 2004 00:39:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1B6121-0008TS-Cg; Wed, 24 Mar 2004 00:34:25 -0500 Original-To: Masatake YAMATO In-reply-to: <20040323.174501.129085852.jet@gyve.org> (message from Masatake YAMATO on Tue, 23 Mar 2004 17:45:01 +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:20834 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20834 Thank you for suggestion. I found a function for the purpose: fix_overlays_in_range. I put it inside `fix_overlays_before'. Instead I put it to the upper level function. Thanks. That is correct, but maybe another change is needed too. I saw this comment at fix_overlays_in_range: Such an overlay might even have negative size at this point. If so, we'll reverse the endpoints. Can you think of anything better to do in this situation? */ That is the wrong thing to do! These overlays should be empty. Can you fix that too? fix_overlays_in_range => fix_start_end_in_overlays That seems like a good idea. fix_overlays_before => fix_order_of_overlays_in_buffer That name is too clumsy, I'd say don't change this one.