From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: links to attachments don't export anymore Date: Fri, 22 Nov 2013 11:35:10 +0100 Message-ID: References: <87r4alczdk.fsf@gmail.com> <87a9h5li6m.fsf@gmail.com> <87r4ahk1p8.fsf@gmail.com> <87pppxo53m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjo5C-0004HD-JM for Emacs-orgmode@gnu.org; Fri, 22 Nov 2013 05:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjo56-0000Ef-Nk for Emacs-orgmode@gnu.org; Fri, 22 Nov 2013 05:35:30 -0500 Received: from smtp6-v.fe.bosch.de ([2a03:cc00:ff0:100::2]:44748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjo56-0000DK-Ed for Emacs-orgmode@gnu.org; Fri, 22 Nov 2013 05:35:24 -0500 In-Reply-To: (Thomas Holst's message of "Tue, 19 Nov 2013 08:15:01 +0100") 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: Nicolas Goaziou Cc: Myles English , Emacs-orgmode Hi Nicolas, =B7 Thomas Holst wrote: > Hi, > > =B7 Nicolas Goaziou wrote: > >>> Actually, this could solved by widening the buffer before expanding t= he >>> link in `org-element-link-parser'. >>> >>> Though, I'm surprised that neither `org-id-get', `org-entry-get' nor,= at >>> the most basic level, `org-entry-properties' remove narrowing before >>> computing their return value. >>> >>> Is there any reason for this? AFAICT, it would be better to wrap them >>> with a `org-with-wide-buffer' macro. >> >> Done for `org-entry-properties'. The regression should be fixed now. >> >> Thank you for the report. > > Thanks for fixing it! I don't have time to test it today. But I will do > so tomorrow. I will report. sorry for the late answer. I could only test it today. For me the problem still persists. Here is my way to produce it. - start emacs (Win7) =20 : start C:\Programme\gnu\emacs-24.3\bin\emacs.exe -Q --eval "(load-file= \"testing.el\")" - testing.el #+begin_src emacs_lisp (add-to-list 'load-path "~/git/org-mode/lisp") (add-to-list 'load-path "~/git/site-lisp") ;; pfad zu contib/lisp (add-to-list 'load-path "~/git/org-mode/contrib/lisp") (add-to-list 'load-path "~/git/org-mode/contrib/babel/lisp") (require 'org-install) (require 'ox) (require 'ox-latex) (require 'org-attach) (setq org-link-abbrev-alist '(("att" . org-attach-expand-link))) (find-file "testing.org") #+end_src - testing.org #+begin_src org #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:{} -:t f:t *:t <:= t #+OPTIONS: TeX:dvipng LaTeX:t skip:nil d:t todo:t pri:nil tags:nil * Attachment = :ATTACH: :PROPERTIES: :Attachments: overview.png :ID: 1eb9cb02-4011-4720-932b-2934e99827d0 :END: With org-version: =20 #+BEGIN_SRC emacs-lisp :exports results (org-version nil t) #+END_SRC #+RESULTS: : Org-mode version 8.0.7 (release_8.0.7 @ path-to/org-mode/lisp/) an attachment link #+BEGIN_VERBATIM att:overview.png #+END_VERBATIM gets exported as: [[att:overview.png]] #+end_src The link gets exportet as: Org-mode version 8.0.7 (release_8.0.7 @ path-to/org-mode/lisp/) [file:c:/temp/att-links/data/1e/b9cb02-4011-4720-932b-2934e99827d0/overvi= ew.png] Org-mode version 8.2.3c (release_8.2.3c-251-gbb97f5 @ path-to/git/org-mod= e/lisp/) [file:c:/temp/att-links/overview.png] So obviously the sub path to the attachment is missing in the link Thanks for looking into this. --=20 Bis neulich ... Thomas