From: Zhengyu Duan <steamedfish@njuopen.com>
To: emacs-orgmode@gnu.org
Subject: Cannot display local images with orgmode under macOS
Date: Thu, 12 Sep 2019 10:33:03 +0800 [thread overview]
Message-ID: <DF1C6284-2818-4454-A56E-651F2B281B16@njuopen.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]
* The problem
Orgmode under macOS cannot display local images correctly, but it can display internet images without problem.
I tried both emacs-mac and emacs-plus, they both have this image problem. But emacs under ArchLinux don’t have this problem.
[[file:xxx.png]] cannot be displayed even the file exists.
[[./xxx.png]] cannot be displayed even the file exists.
[[http://example.org/xxx.png]] can be displayed if the link exists.
Emacs can display any images with C-x C-f xxx.png. The problem happens only with orgmode.
* The reason
After bisecting org-mode source code I found out that this commit causes the problem:
https://code.orgmode.org/bzg/org-mode/commit/48da60f47a77f4b99b4160fa620f258896ff4da3
Reverting to previous commit fixes the problem.
I’m new to Emacs and don’t understand the code of this commit. I cannot do further investigation.
* Screenshot
File content:
[[./cacochan.png]]
[[https://github.com/hlissner/doom-emacs/raw/screenshots/cacochan.png]]
Will show like this:
[-- Attachment #2.1: Type: text/html, Size: 2338 bytes --]
[-- Attachment #2.2: PastedGraphic-1.png --]
[-- Type: image/png, Size: 116533 bytes --]
next reply other threads:[~2019-09-12 2:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-12 2:33 Zhengyu Duan [this message]
2019-09-12 12:48 ` Cannot display local images with orgmode under macOS Marco Wahl
2019-09-12 17:02 ` Berry, Charles
2019-09-13 4:37 ` Tim Cross
2019-09-14 7:43 ` Marco Wahl
2019-09-27 10:30 ` Zhengyu Duan
2019-09-27 16:27 ` Marco Wahl
2019-09-13 11:50 ` Rick Frankel
2019-11-17 16:37 ` Jack Kamm
2019-11-17 22:55 ` Jack Kamm
2019-11-18 21:58 ` Marco Wahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DF1C6284-2818-4454-A56E-651F2B281B16@njuopen.com \
--to=steamedfish@njuopen.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.