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: Info mutilates user overlays. Date: 01 Oct 2003 15:54:34 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310010216.h912Ge027788@raven.dms.auburn.edu> <200310011449.h91EnBN28933@raven.dms.auburn.edu> <200310011914.h91JEZU01874@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065038189 24341 80.91.224.253 (1 Oct 2003 19:56:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2003 19:56:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 01 21:56:26 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 1A4n5G-0007kC-00 for ; Wed, 01 Oct 2003 21:56:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4n5F-0003dl-01 for ; Wed, 01 Oct 2003 21:56:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4n4B-0002CK-On for emacs-devel@quimby.gnus.org; Wed, 01 Oct 2003 15:55:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A4n46-0002Bf-Hh for emacs-devel@gnu.org; Wed, 01 Oct 2003 15:55:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A4n3a-00028w-K6 for emacs-devel@gnu.org; Wed, 01 Oct 2003 15:55:13 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4n3a-00028l-9F for emacs-devel@gnu.org; Wed, 01 Oct 2003 15:54:42 -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 h91JsaKS001035; Wed, 1 Oct 2003 15:54:36 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id DAB563C549; Wed, 1 Oct 2003 15:54:35 -0400 (EDT) Original-To: Luc Teirlinck In-Reply-To: <200310011914.h91JEZU01874@raven.dms.auburn.edu> 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:16825 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16825 > In the very concrete case at hand, I was highlighting regions with > non-nil `help-echo' property, using overlays with background color. > The code works for properties other than help-echo too. Again, in the > concrete case at hand, I was doing it explicitly to check whether my > code would work in *info* buffers. But I have used overlays > personally for a variety of reasons, for instance, to highlight for Please: *how* do you highlight ? Did you create some commands similar to what is available under M-g but using overlays, or do you add the overlay from a hook, or ... I mean, your example using M-: (make-overlay foo bar) RET and stuff like that, I don't really care about the interaction with info. overlays and text-properties should basically never be added without keeping track of them and deleting or using them later on. Kind of like drawing in GUIs: you have to keep track of what you've drawn to potentially update it if the window is resized, hidden, deiconified, ... Stefan