Hi all,
Today I ran into some behavior that seemed strange to me:
I have inline images:
[[file:relative/path/from/org-file.png]]
With org-startup-with-inline-images these work as expected.
What does not work as expected is org-toggle-inline-images : this does
not disable inline image preview (though it does *enable* it).
However, when you change the path to:
[[file:./relative/path/from/org-file.png]]
It does work as expected. You need to explicitly add the initial dot
slash.
Since org is perfectly capable of displaying images without the initial
dot slash, the behavior of org-toggle-inline-images seems to be a bit
inconsistent.
Kind regards,
Matthijs de Jonge
Emacs : GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20
Version 10.14.3 (Build 18D109))
of 2019-09-02
Package: Org mode version 9.3.7 (9.3.7-2-g706970-elpa @
/Users/matthijs/.emacs.d/elpa/org-20200608/)
current state:
==
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-link-shell-confirm-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
org-src-tab-acts-natively t
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-imenu-depth 5
org-agenda-files '("~/Dropbox/00_db/boeken.txt"
"~/Dropbox/00_db/boodschappenlijst.txt"
"~/Dropbox/00_db/building_a_second_brain.txt"
"~/Dropbox/00_db/cadeaus.txt"
"~/Dropbox/00_db/curiosa.txt" "~/Dropbox/00_db/dingen.txt"
"~/Dropbox/00_db/downloaden.txt"
"~/Dropbox/00_db/dromen.txt"
"~/Dropbox/00_db/electronica.txt" "~/Dropbox/00_db/emacs.txt"
"~/Dropbox/00_db/fiets.txt" "~/Dropbox/00_db/go.txt"
"~/Dropbox/00_db/hardlopen.txt"
"~/Dropbox/00_db/hoofdpijn.txt"
"~/Dropbox/00_db/huishouden.txt" "~/Dropbox/00_db/inbox.txt"
"~/Dropbox/00_db/kijken.txt" "~/Dropbox/00_db/kleren.txt"
"~/Dropbox/00_db/koffie.txt"
"~/Dropbox/00_db/koken.txt"
"~/Dropbox/00_db/krachttraining.txt" "~/Dropbox/00_db/kunst.txt"
"~/Dropbox/00_db/leren.txt" "~/Dropbox/00_db/monsters.txt"
"~/Dropbox/00_db/muziek.txt"
"~/Dropbox/00_db/muziekmaken.txt"
"~/Dropbox/00_db/muziekquiz.txt"
"~/Dropbox/00_db/onderwijs.txt"
"~/Dropbox/00_db/planten.txt" "~/Dropbox/00_db/quizvragen.txt"
"~/Dropbox/00_db/racket-sequencer.txt"
"~/Dropbox/00_db/rijmpjes.txt"
"~/Dropbox/00_db/sleutels.txt" "~/Dropbox/00_db/stretching
mobility.txt"
"~/Dropbox/00_db/strips.txt" "~/Dropbox/00_db/suriname.txt"
"~/Dropbox/00_db/tech.txt"
"~/Dropbox/00_db/tekenen.txt" "~/Dropbox/00_db/todo.txt"
"~/Dropbox/00_db/treinen.txt"
"~/Dropbox/00_db/verjaardagen.txt"
"~/Dropbox/00_db/vogels.txt" "~/Dropbox/00_db/vrijetijd.txt"
"~/Dropbox/00_db/weekoverzicht.txt"
"~/Dropbox/00_db/werk.txt" "~/Dropbox/00_db/wiskunde.txt"
"~/Dropbox/00_db/woorden.txt")
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-mode-hook '((lambda nil (imenu-add-to-menubar "Imenu"))
#[0 "\301\211\207" [imenu-create-index-function
org-imenu-get-tree] 2]
(lambda nil (variable-pitch-mode 1) (setq line-spacing 0.2)
(mapcar (function (lambda (face) (set-face-attribute face nil
:inherit (quote fixed-pitch
(quote
(org-block org-table org-meta-line org-document-title
org-document-info-keyword org-date
org-special-keyword org-drawer org-property-value)
)
)
)
(lambda nil (org-bullets-mode 1))
#[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-babel-show-result-all
append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes (lambda
nil (flyspell-mode 1)))
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-indented t
org-startup-with-inline-images t
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn
ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
o