From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Should overlays evaporate by default? Date: 17 May 2005 20:15:56 -0400 Message-ID: References: <200505161459.j4GExamZ005296@brains.moreideas.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116419708 29901 80.91.229.2 (18 May 2005 12:35:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 12:35:08 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 18 14:34:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYNkG-0000A9-HA for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 14:33:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYNmh-0007vp-FT for ged-emacs-devel@m.gmane.org; Wed, 18 May 2005 08:36:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYCfK-0003E9-73 for emacs-devel@gnu.org; Tue, 17 May 2005 20:44:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYCfJ-0003Dh-7n for emacs-devel@gnu.org; Tue, 17 May 2005 20:44:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYCfD-00035C-I1 for emacs-devel@gnu.org; Tue, 17 May 2005 20:43:55 -0400 Original-Received: from [207.245.121.138] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1DYCM5-0002hj-AM for emacs-devel@gnu.org; Tue, 17 May 2005 20:24:09 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.34) id 1DYCE8-0001OR-8l for emacs-devel@gnu.org; Tue, 17 May 2005 20:15:56 -0400 Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:37246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37246 Richard Stallman writes: > patches for you to try. below is an untested patch that sets the evaporate property for newly-made overlays. munge to taste, etc. thi ___________________________________________________________ *** buffer.c 4 May 2005 22:10:14 -0000 1.479 --- buffer.c 18 May 2005 00:13:24 -0000 *************** *** 3602,3607 **** --- 3602,3611 ---- XOVERLAY (overlay)->plist = Qnil; XOVERLAY (overlay)->next = NULL; + /* This is suitable for testing. If it works out, we can + rework it to set ->plist directly (a few lines above). */ + Foverlay_put (overlay, Qevaporate, Qt); + /* Put the new overlay on the wrong list. */ end = OVERLAY_END (overlay); if (OVERLAY_POSITION (end) < b->overlay_center)