From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: how to find out when display property is deleted in C? Date: Mon, 12 May 2008 10:25:28 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210602343 7250 80.91.229.12 (12 May 2008 14:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 14:25:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 16:26:21 2008 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 1JvYyq-0006LX-JP for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 16:26:20 +0200 Original-Received: from localhost ([127.0.0.1]:48486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvYy8-0004Li-Cs for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 10:25:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvYy4-0004K9-2k for emacs-devel@gnu.org; Mon, 12 May 2008 10:25:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvYy2-0004I9-ET for emacs-devel@gnu.org; Mon, 12 May 2008 10:25:31 -0400 Original-Received: from [199.232.76.173] (port=55652 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvYy2-0004Hy-AG for emacs-devel@gnu.org; Mon, 12 May 2008 10:25:30 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:41085) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvYy1-00074v-Fz for emacs-devel@gnu.org; Mon, 12 May 2008 10:25:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocDAODvJ0jO+JgrdGdsb2JhbACBU5A7ASeYKg X-IronPort-AV: E=Sophos;i="4.27,473,1204520400"; d="scan'208";a="20410556" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 12 May 2008 10:25:28 -0400 Original-Received: from pastel.home ([206.248.152.43]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id STL39028; Mon, 12 May 2008 10:25:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 17E797F83; Mon, 12 May 2008 10:25:28 -0400 (EDT) In-Reply-To: (joakim@verona.se's message of "Mon, 12 May 2008 11:34:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:97022 Archived-At: > How do I find out when a display property is deleted in C? You don't/can't. > In the xwidget patch I need to delete the corresponding xwdiget when > the display property is deleted. What happens if the display property is later re-added? If that situations is not problematic, then you can keep your xwidgets in a cache which you can flush every once in a while. Also what happens if the same display property gets added at two places (either in the same buffer or in different buffers)? Stefan