Gmane
Picon Favicon
From: Stefan Vollmar <vollmar <at> nf.mpg.de>
Subject: image link inconsistency in org-mode 6.36c
Newsgroups: gmane.emacs.orgmode
Date: 2010-06-08 22:14:01 GMT (1 year, 49 weeks, 5 days, 10 hours and 16 minutes ago)
Hi,

I have observed an inconsistency with handling image links in org-mode 6.36c, in particular with the
caption-option. Here is a minimal org-file to demonstrate my point:

file:image1.png
#+CAPTION: My Caption1.
file:image1.png
#+CAPTION: My Caption2.
[[file:image1.png]]

If displayed in org-mode, the image links all look the same. When exporting to HTML, the first image is
rendered as expected, the second instance will be ignored and the third instance is displayed with a
(combined!) caption text of "My Caption1. My Caption2."

Using org-toggle-inline-images, only the last instances will yield an image in Emacs. If one deletes the
last line, org-toggle-inline-images comments "No inline images to display".

The problem came up today, when we added a caption in an older org-mode file which used the simple
"file:"-syntax (no square brackets): the previously working image vanished and the caption text was
found many paragraphs later in the next image caption (and only spotted by coincidence).

This is potentially dangerous behaviour. As a consequence, we will change all our image links to the
"[[file:...]]" syntax which will solve the problem for us.

However, I would suggest that the simple "file:"-syntax should no longer be supported, except when
explicitly enabled by a new flag (an option which might be desirable for backward compatibility). Or is
there some hidden benefit in the "file:"-syntax other than being marginally shorter?

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar <at> nf.mpg.de   http://www.nf.mpg.de

Attachment (smime.p7s): application/pkcs7-signature, 4409 bytes
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode <at> gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode