From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Graphic files displayed in buffer? Date: Sun, 13 Sep 2015 22:06:08 +0200 Message-ID: <87613e2ifj.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbDXY-00018a-IU for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbDXV-0001Uq-CL for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:06:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:45428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbDXV-0001Um-5o for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 16:06:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZbDXT-0002m6-Jd for emacs-orgmode@gnu.org; Sun, 13 Sep 2015 22:06:15 +0200 Received: from tsn109-201-154-141.dyn.nltelcom.net ([109.201.154.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2015 22:06:15 +0200 Received: from rasmus by tsn109-201-154-141.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2015 22:06:15 +0200 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 Hi, >> Links to graphic files in one section of a long-lived document now >> display the graphic in the Org mode buffer. This new behavior is >> surprising and unwanted. >> >> Links to graphic files in other sections of the same document are >> displayed correctly as links. >> >> I'd like to have all the links displayed as links. Any ideas how to fix >> this? > > I think I've found a recently introduced bug. > > The behavior I describe above can be triggered by a call to org-sbe, > which I have set up like this at the end of my Org mode file. > > # Local Variables: > # org-entities-user: nil > # eval: (and (fboundp 'org-sbe) (not (fboundp 'sbe)) (fset 'sbe 'org-sbe)) > # eval: (sbe "user-entities") > # End: > > If I omit the # eval: (sbe "user-entities") line, save the file, close > it, and re-open it then all is well. > > If I add the line and refresh the setup, then the problem returns. I cannot reproduce. What is your "user-entities" code block? This is my test file: [[file:/tmp/test.png]] #+name: user-entities #+BEGIN_SRC emacs-lisp 1 #+END_SRC # Local Variables: # org-entities-user: nil # eval: (and (fboundp 'org-sbe) (not (fboundp 'sbe)) (fset 'sbe 'org-sbe)) # eval: (sbe "user-entities") # End: -- With monopolies the cake is a lie!