From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9642: move-overlay creates an empty overlay with the evaporate property Date: Sun, 02 Oct 2011 23:15:56 -0400 Message-ID: References: <4E8648C6.5050905@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317611810 11302 80.91.229.12 (3 Oct 2011 03:16:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2011 03:16:50 +0000 (UTC) Cc: 9642@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 05:16:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAZ1J-0004iw-Im for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 05:16:45 +0200 Original-Received: from localhost ([::1]:52027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAZ1J-0006lA-3w for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2011 23:16:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAZ1G-0006l5-Fw for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 23:16:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAZ1F-0006Ym-Ii for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 23:16:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAZ1F-0006Yi-HB for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 23:16:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RAZ2X-00027L-Ux for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2011 23:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2011 03:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9642 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 9642-submit@debbugs.gnu.org id=B9642.13176118438094 (code B ref 9642); Mon, 03 Oct 2011 03:18:01 +0000 Original-Received: (at 9642) by debbugs.gnu.org; 3 Oct 2011 03:17:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAZ1u-00026S-5w for submit@debbugs.gnu.org; Sun, 02 Oct 2011 23:17:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RAZ1q-00026H-DW for 9642@debbugs.gnu.org; Sun, 02 Oct 2011 23:17:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAK8niU5FpZLc/2dsb2JhbABBDqgBgQaBUwEBBAFWIwULCzQSFBgNJIgOtxOHIQSgd4NwUw X-IronPort-AV: E=Sophos;i="4.68,478,1312171200"; d="scan'208";a="139710533" Original-Received: from 69-165-146-220.dsl.teksavvy.com (HELO ceviche.home) ([69.165.146.220]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 02 Oct 2011 23:15:56 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id A5EA0660B6; Sun, 2 Oct 2011 23:15:56 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Fri, 30 Sep 2011 23:09:14 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 02 Oct 2011 23:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52093 Archived-At: >> In a nonempty buffer, the following: >> (let ((o (make-overlay 1 2))) >> (overlay-put o 'evaporate t) >> (move-overlay o 0 1)) >> returns an empty overlay that has the evaporate property. >> But this is not supposed to happen: when an overlay with that >> property becomes empty, it's supposed to be deleted. > OTOH if the user goes through the trouble to do the above, he probably > doesn't want this overlay to disappear right away. So I'm not sure we > want to second guess the user here. I see I was confused: I didn't realize that your example's use of out-of-bounds position was important, and I thought your change also affected (move-overlay OL A A). So, I now think your patch is perfectly fine, thank you. Stefan