From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Bug: inline image display not working when org-indent-mode active, follow-up Date: Thu, 05 Aug 2010 08:00:43 -0500 Message-ID: <4C5AB5FB.2010501@ccbr.umn.edu> References: <4C5A1FC3.5000201@ccbr.umn.edu> <4C5A778E.2020301@os.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52970 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh1uV-0006uW-2n for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 10:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oh1uO-0000m5-2x for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 10:59:06 -0400 Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:62298) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh1uJ-0000j4-6Y for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 10:58:59 -0400 In-Reply-To: <4C5A778E.2020301@os.inf.tu-dresden.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martin Pohlack Cc: emacs-orgmode On 08/05/2010 03:34 AM, Martin Pohlack wrote: > Hi, > > On 05.08.2010 04:19, Erik Iverson wrote: >> Hello, >> >> I am using the latest org pulled from git. >> >> In the past few weeks, I found that the overlays of inline images in >> my org-mode >> files would flash quickly and then be deleted when using >> org-indent-mode. > > If a functions want to elide trigger the modification hooks it should > bind: inhibit-modification-hooks. > > From > http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.html: > >> modification-hooks >> If a character has the property modification-hooks, then its >> value should be a list of functions; modifying that character >> calls all of those functions. Each function receives two >> arguments: the beginning and end of the part of the buffer being >> modified. Note that if a particular modification hook function >> appears on several characters being modified by a single >> primitive, you can't predict how many times the function will be >> called. >> >> If these functions modify the buffer, they should bind >> inhibit-modification-hooks to t around doing so, to avoid >> confusing the internal mechanism that calls these hooks. >> >> Overlays also support the modification-hooks property, but the >> details are somewhat different (see Overlay Properties). > > Could you try to find out the path from where these modifications > occur, insert a relevant bind there, and see if this helps? I will try to track this down, yes.