From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Behavior of evaporate Date: 26 Sep 2003 11:59:31 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20030926.165808.260114910.jet@gyve.org> <20030926.175343.232772863.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064593278 6457 80.91.224.253 (26 Sep 2003 16:21:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2003 16:21:18 +0000 (UTC) Cc: Masatake YAMATO , miles@lsi.nec.co.jp, miles@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Sep 26 18:21:15 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2vLH-0003vY-00 for ; Fri, 26 Sep 2003 18:21:15 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2vLH-0006ou-00 for ; Fri, 26 Sep 2003 18:21:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2vKT-0003BI-H4 for emacs-devel@quimby.gnus.org; Fri, 26 Sep 2003 12:20:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A2vIb-0002iW-PE for emacs-devel@gnu.org; Fri, 26 Sep 2003 12:18:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A2vIY-0002hd-K3 for emacs-devel@gnu.org; Fri, 26 Sep 2003 12:18:27 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2v0P-00081r-Nu; Fri, 26 Sep 2003 11:59:41 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h8QFxWKS010063; Fri, 26 Sep 2003 11:59:32 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 21B573C547; Fri, 26 Sep 2003 11:59:32 -0400 (EDT) Original-To: David Kastrup In-Reply-To: Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-MailScanner-DIRO: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 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:16679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16679 > (progn (setq xxx 1) > (goto-char 1) > (insert "x") > (setq o (make-overlay 1 2)) > (overlay-put o 'modification-hooks (list (lambda (ov dummy b e > &optional l) > (setq xxx 0)))) > (overlay-put o 'evaporate t) > (delete-char 1) > xxx) And the above code only tests whether `modification-hooks' works, not whether `evaporate' works. As for my initial remark about `evaporate' working, I meant "I'm not sure if it does what we want here" when I said "I'm not sure it'll work". I know `evaporate' does work in the sense that it does what it's documented to do (otherwise I'd have fixed it or filed a bug report). Stefan