From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: Retrieve front-advance from make-overlay Date: Wed, 17 Jan 2007 09:19:43 -0800 (PST) Message-ID: <53214.128.165.123.18.1169054383.squirrel@webmail.lanl.gov> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1169054411 7475 80.91.229.12 (17 Jan 2007 17:20:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2007 17:20:11 +0000 (UTC) Cc: Lennart Borgman , Stefan Monnier , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 17 18:20:08 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7ES9-0000CZ-8u for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2007 18:20:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7ES9-00036p-FZ for ged-emacs-devel@m.gmane.org; Wed, 17 Jan 2007 12:20:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7ERy-00036Y-9u for emacs-devel@gnu.org; Wed, 17 Jan 2007 12:19:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7ERx-00034y-Bc for emacs-devel@gnu.org; Wed, 17 Jan 2007 12:19:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7ERx-00034Y-7U for emacs-devel@gnu.org; Wed, 17 Jan 2007 12:19:49 -0500 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7ERv-0007hx-HN; Wed, 17 Jan 2007 12:19:47 -0500 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l0HHJj8b031674; Wed, 17 Jan 2007 10:19:45 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l0HHJiGU028025; Wed, 17 Jan 2007 10:19:44 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l0HHJiZ7002797; Wed, 17 Jan 2007 10:19:44 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l0HHJhrb002787; Wed, 17 Jan 2007 09:19:43 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 17 Jan 2007 09:19:43 -0800 (PST) Original-To: "David Kastrup" User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65258 Archived-At: [Sorry if this is a repeat post and/or doesn't go into the thread properly; my mailer didn't like my first attempt.] > It was untested, and naturally, it is wrong. Both calls to > move-overlay. You have to use > > (move-overlay ov 1 1 (current-buffer)) > > and > > (move-overlay ov start end buf) > > instead, respectively. There are probably more errors: I still did not test it. It seems to me that you should put the overlay on a single character in a buffer and then insert once on either side of that character. Would a 0-length overlay with front-advance but not rear-advance actually sit on the range n to n-1 if you inserted before it? Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.