From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Brockman Newsgroups: gmane.emacs.devel Subject: Re: Invisibility bug: `invisible' vs `display' Date: Thu, 22 Feb 2007 22:23:07 +0100 Message-ID: <873b4x99ac.fsf@wigwam.brockman.se> References: <87sldbtd50.fsf@wigwam.brockman.se> <87hctraqhh.fsf@stupidchicken.com> <87hctq6eyd.fsf@wigwam.brockman.se> <861wkucyxw.fsf@lola.quinscape.zz> <87ps8e9k8e.fsf@wigwam.brockman.se> <87vehu99x7.fsf@wigwam.brockman.se> <863b4yxvu3.fsf@lola.quinscape.zz> <87ps82gwdi.fsf@wigwam.brockman.se> <86mz36wbvc.fsf@lola.quinscape.zz> <87hctegtxt.fsf@wigwam.brockman.se> <86irduw0sr.fsf@lola.quinscape.zz> <87abz67wqd.fsf@wigwam.brockman.se> <85wt29di14.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172179476 17241 80.91.229.12 (22 Feb 2007 21:24:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Feb 2007 21:24:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 22 22:24:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKLQN-0006un-UB for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 22:24:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKLQN-0004Cq-9L for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 16:24:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKLPY-0003xf-Bc for emacs-devel@gnu.org; Thu, 22 Feb 2007 16:23:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKLPV-0003wo-Ru for emacs-devel@gnu.org; Thu, 22 Feb 2007 16:23:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKLPV-0003wj-M6 for emacs-devel@gnu.org; Thu, 22 Feb 2007 16:23:29 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKLPV-0004Yd-8O for emacs-devel@gnu.org; Thu, 22 Feb 2007 16:23:29 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HKLPD-0002es-4R for emacs-devel@gnu.org; Thu, 22 Feb 2007 22:23:14 +0100 Original-Received: from c-b1fee255.09-32-6c6b7013.cust.bredbandsbolaget.se ([85.226.254.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Feb 2007 22:23:11 +0100 Original-Received: from daniel by c-b1fee255.09-32-6c6b7013.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Feb 2007 22:23:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-b1fee255.09-32-6c6b7013.cust.bredbandsbolaget.se X-Face: :&2UWGm>e24)ip~'K@iOsA&JT3JX*v@1-#L)=dUb825\Fwg#`^N!Y*g-TqdS AevzjFJe96f@V'ya8${57/T'"mTd`1o{TGYhHnVucLq!D$r2O{IN)7>.0op_Y`%r;/Q +(]`3F-t10N7NF\.Mm0q}p1:%iqTi:5]1E]rDF)R$9.!,Eu'9K':y9^U3F8UCS1M+A$ 8[[[WT^`$P[vu>P+8]aQMh9giu&fPCqLW2FSsGs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:ISLGuQ0k816q4GzA+qyMdq9h4u4= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:66646 Archived-At: David Kastrup writes: > Daniel Brockman writes: > >> David Kastrup writes: >> >>> Daniel Brockman writes: >>> >>>> How can an overlay with identical start and end points >>>> display anything? >>> >>> Using the display property. Are you sure that you understand the >>> difference between overlays and text properties? Text properties are >>> bound to characters, overlays to buffer positions. >> >> Well, I'm obviously confused. I thought overlay properties >> applied to the characters under the overlay. > > They apply to the region between its buffer positions. > Which is usually pretty similar to "characters under the > overlay". But zero-length overlays exist and work, too, > and when copying text from a buffer, overlay properties > are not copied as part of the text. I can't get zero-length overlays to display anything using the `display' property. Here's what I'm doing: (overlay-put (make-overlay (point) (point)) 'display "foo") > You can even have overlays that are restricted to a single > window displaying the buffer and will not have an effect > on other windows showing the same buffer. That's cool. I didn't know that. -- Daniel Brockman