org-mode/lisp
Carsten Dominik 33fba09ddb Match also image paths relative to home
Baoqui Cui writes:

> "robut@iinet.net.au" <robut@iinet.net.au> writes:
>
> I very much like the idea of native inline image display in Org-mode but  can't
> seem to make it work.
>
> Given a 6.36 snapshot or 6.36 release and these org file contents
>
> * Test image
> Test image
> [[Screenshot.png]]
>
>
> I hoped org would display that image after C-c C-x C-v. Rather Org-mode returns
> "No images to display inline".
>
> I've tried different ways of linking that image, different image formats,
> relative vs complete paths, and my regular .emacs vs  a near empty one and
> always the same result. If I toggle iimage-mode the image displays fine per se
> but does not affect how Org-mode works.
>
> Seems clear I am missing something simple. What?
>
> I like the idea of inline image display too, but hit the similar
> problems.  After reading the code in org.el, I found that the inline
> image file link has to start with either "file:" or "./".
>
> For example, the following two links are OK:
>
>   [[file:~/images/myImage.png]]
>   [[./figures/org-mode-unicorn.svg]]
>
> but the following two are not:
>
>   [[Screenshot.png]]
>   [[~/images/myImage.png]]
>
> Here is a small patch that seems to work well for me, but I'd like
> Carsten to check whether it may break anything
2010-05-12 14:51:42 +02:00
..
ChangeLog Match also image paths relative to home 2010-05-12 14:51:42 +02:00
ChangeLog.01 Move the older ChangeLog entries 2010-04-14 10:31:18 +02:00
org-agenda.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-archive.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-ascii.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-attach.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-bbdb.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-beamer.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-bibtex.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-clock.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-colview-xemacs.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-colview.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-compat.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-crypt.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-ctags.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-datetree.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-docbook.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-docview.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-entities.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-exp-blocks.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-exp.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-faces.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-feed.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-footnote.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-freemind.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-gnus.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-habit.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-html.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-icalendar.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-id.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-indent.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-info.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-inlinetask.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-irc.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-jsinfo.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-latex.el Fix typo 2010-05-09 23:01:56 +02:00
org-list.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mac-message.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-macs.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mew.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mhe.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mobile.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-mouse.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-plot.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-protocol.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-publish.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-remember.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-rmail.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-src.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-table.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-timer.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-vm.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-w3m.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-wl.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org-xoxo.el Push version number to 6.36trans 2010-05-09 06:24:20 +02:00
org.el Match also image paths relative to home 2010-05-12 14:51:42 +02:00