Hi Nicolas, · Thomas Holst <thomas.ho...@de.bosch.com> wrote: > Hi, > > · Nicolas Goaziou <n.goaz...@gmail.com> wrote: > >>> Actually, this could solved by widening the buffer before expanding the >>> 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) : 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: #+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/overview.png] Org-mode version 8.2.3c (release_8.2.3c-251-gbb97f5 @ path-to/git/org-mode/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. -- Bis neulich ... Thomas