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: Mon, 03 Oct 2011 09:21:16 -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 1317648118 30575 80.91.229.12 (3 Oct 2011 13:21:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2011 13:21:58 +0000 (UTC) Cc: eggert@cs.ucla.edu, 9642@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 15:21:49 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 1RAiSr-0000KO-9i for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 15:21:49 +0200 Original-Received: from localhost ([::1]:32914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAiSo-0007Cv-8S for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2011 09:21:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAiSl-0007AH-15 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 09:21:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAiSg-0007VI-I6 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 09:21:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAiSg-0007VE-DF for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 09:21:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RAiU1-0008C2-GY for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2011 09:23:01 -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 13:23: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.131764816431469 (code B ref 9642); Mon, 03 Oct 2011 13:23:01 +0000 Original-Received: (at 9642) by debbugs.gnu.org; 3 Oct 2011 13:22:44 +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 1RAiTi-0008BV-Vh for submit@debbugs.gnu.org; Mon, 03 Oct 2011 09:22:44 -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 1RAiTg-0008BN-RR for 9642@debbugs.gnu.org; Mon, 03 Oct 2011 09:22:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGm1iU5FpZLc/2dsb2JhbABBp3+BBoFTAQEEAVYjBQsLNBIUGA0kiA63ZYchBKB3hEM X-IronPort-AV: E=Sophos;i="4.68,479,1312171200"; d="scan'208";a="139740802" Original-Received: from 69-165-146-220.dsl.teksavvy.com (HELO pastel.home) ([69.165.146.220]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 03 Oct 2011 09:21:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7F2A55907F; Mon, 3 Oct 2011 09:21:16 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Mon, 03 Oct 2011 01:36:11 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 03 Oct 2011 09:23: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:52108 Archived-At: > If we are going to support this misbehavior (the fact that BEG can be > zero or negative), please add comments in the code to that effect, and > maybe also document it in the doc string. Comment in the code would be good, yes. But documenting this behavior is not a good idea, I think. > FWIW, I think clipping of positions inside set-marker is for the case > of narrowed buffer, not for being able to handle positions outside the > valid range of values. I think so too. But the issue is only about `evaporate', which should ensure the overlay never stays empty without evaporating. I don't think this matters much either way, so let's not bikeshed too much. Stefan