From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: [Bug] org-startup-with-inline-images Date: Wed, 01 May 2013 13:42:48 -0400 Message-ID: <13d08661e45af15afb9309d55503a3df@mail.rickster.com> References: <23e22687eaae8dff1bfd56306ef41b17@mail.rickster.com> <871u9qehj7.fsf@tanger.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXb3O-0003c2-U4 for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:42:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXb3I-0004uc-TY for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:42:54 -0400 Received: from [204.62.15.78] (port=58411 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXb3I-0004uV-Pw for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:42:48 -0400 In-Reply-To: <871u9qehj7.fsf@tanger.home> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 01.05.2013 13:28, Daimrod wrote: > Thanks for the report, I've attached a patch that fixes this problem > (in > both `org-display-inline-images' and `org-preview-latex-fragment'). > However I don't know if it is the right approach or if I should try > to > narrow this to lower-level functions. > > I know that `clear-image-cache' raise this error but I haven't tried > to > see if it the only one. Should I try to look more at it and add a > `org-clear-image-cache' which will check if a graphic display is > available or is the current solution fine? Looks good. No, I tried narrowing it down myself and it breaks in amy other places in org-display-inline-images if you don't simply cond out the entire function. thanx, rick