From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aJs1DcgP4l5GOQAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 11:04:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EMDvCMgP4l5pDAAAbx9fmQ (envelope-from ) for ; Thu, 11 Jun 2020 11:04:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EEFAF940418 for ; Thu, 11 Jun 2020 11:04:38 +0000 (UTC) Received: from localhost ([::1]:44170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjL0f-0004WN-Sg for larch@yhetil.org; Thu, 11 Jun 2020 07:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjKYl-00047S-Fh for emacs-orgmode@gnu.org; Thu, 11 Jun 2020 06:35:47 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:41920) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjKYj-0003pN-LL for emacs-orgmode@gnu.org; Thu, 11 Jun 2020 06:35:47 -0400 Received: by mail-ej1-x62f.google.com with SMTP id x1so5928518ejd.8 for ; Thu, 11 Jun 2020 03:35:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=7Ip4jWLnght3qpufAy4EGaHXZT+6oT/3Cg8EcEcKfXM=; b=JuyoAAnHpLs2hXXmCL//fdkprRuQ/Co6Ong2W3r8nWTmjEdKt6iJmhOO5kDc+qwZo7 nUiND4st1PAc+o7mhmz2TdmnNlG/bM8pEdyL0mgkJem0Ol2ISxgOKKmIpVihZsZeyLAG xJghZpuiGguUNF0+ckxu4x5+YshpKSa45B6oAvabE/SFmihQcUuSBTgNSv2DZjgP/enk 4C/tBOu7T1Wifhq4lLlKOWDn4SbnR3faE+iaTkXiSpKVyCD4bhQ9Rx8/x2cFtRo9CIxl 1eETeQxlalQ+IIwzp3uHKVrCbdJ/y4BtH2V/qz+LMj2/YvXux3HDImJxpHPoVp25Qawa j+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=7Ip4jWLnght3qpufAy4EGaHXZT+6oT/3Cg8EcEcKfXM=; b=tQCeqnt5Ag7uBRFYbBTx+LTRsf1v3vVL4SutnwCmqIJvA2kOp2ttVioOwFq7cfox94 vDMTYzmq3J0J3FgBylASTPZQXeEicBytgkqjPTebudclyNHxcwhMhzZAnROegXwkDfdj K3PNpEdi5CG4DvrcGPuVExe9p1d16shDcf7bz9NoBt2qRUyCsGHOloACAvSglIoSOMcc bbFBnbg893WPLQ/iZjXJGjEFuYPETIzajIVs9Z+g/K011KyxYjzNjysN5EaC6HzNubpi L5cMbl9sjPmPriA/3BBiLe1a9XJOJhf9HAFOCtBM2fLelwDhb4gR0czFfKIaIDlqBtsH NcBQ== X-Gm-Message-State: AOAM533+kSMtc7C8RJQjjuUWNf72TVIJITIqfiPy4G4/7cNChGRmlcuH djpZJZweNoygwYQyqMvD0ohFdVoUOqI= X-Google-Smtp-Source: ABdhPJzHIKIXcQpgKxxWk6hUSpIL3E/7D3+rRnvmG54q5860kFCX/flWqFEQ+2UvgifsB4ZiFw6k1w== X-Received: by 2002:a17:906:6dcf:: with SMTP id j15mr7623065ejt.270.1591871738023; Thu, 11 Jun 2020 03:35:38 -0700 (PDT) Received: from ?IPv6:2001:985:a42f:1:4d67:6f0a:a03f:7939? ([2001:985:a42f:1:4d67:6f0a:a03f:7939]) by smtp.gmail.com with ESMTPSA id o20sm1577558ejx.102.2020.06.11.03.35.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2020 03:35:36 -0700 (PDT) From: Matthijs de Jonge Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Inconsistent behaviour: toggle inline images does not work with relative paths [9.3.7 (9.3.7-2-g706970-elpa @ /Users/matthijs/.emacs.d/elpa/org-20200608/)] Message-Id: Date: Thu, 11 Jun 2020 12:35:35 +0200 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3445.104.14) Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=rhmtts@gmail.com; helo=mail-ej1-x62f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Thu, 11 Jun 2020 07:03:58 -0400 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JuyoAAnH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: 64IIvP+3V8sy 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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=10\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=01\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) org-babel-load-languages '((python . t) (racket . t) (emacs-lisp . t)) org-ascii-format-drawer-function #[771 "=01\207" [] 4 "\n\n(fn NAME = CONTENTS WIDTH)"] org-ellipsis " =E2=A4=B5" org-babel-python-command "python3" org-src-preserve-indentation t org-catch-invisible-edits 'show-and-error org-occur-hook '(org-first-headline-recenter) org-structure-template-alist '(("c" . "center") ("e" . "example") ("l" = . "src emacs-lisp") ("p" . "src python :session") ("q" . = "quote") ("r" . "src racket")) org-cycle-hook '(org-cycle-hide-archived-subtrees = org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO" "|" "DONE(!)") (sequence "|" = "WAIT(!)")) org-speed-command-hook '(org-speed-command-activate = org-babel-speed-command-activate) org-odt-format-inlinetask-function = 'org-odt-format-inlinetask-default-function org-babel-tangle-lang-exts '(("python" . "py") ("racket" . "rkt") = ("emacs-lisp" . "el") ("elisp" . "el")) org-return-follows-link t org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link = :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow eww = :store org-eww-store-link) ("rmail" :follow org-rmail-open :store = org-rmail-store-link) ("mhe" :follow org-mhe-open :store = org-mhe-store-link) ("irc" :follow org-irc-visit :store = org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export = org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store = org-gnus-store-link) ("docview" :follow org-docview-open :export = org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store = org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export = org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("file+sys") = ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[257 "\301\300\302=03Q!\207" = ["news" browse-url ":"] 5 "\n\n(fn URL)"]) ("mailto" :follow #[257 "\301\300\302=03Q!\207" = ["mailto" browse-url ":"] 5 "\n\n(fn URL)"]) ("https" :follow #[257 "\301\300\302=03Q!\207" = ["https" browse-url ":"] 5 "\n\n(fn URL)"]) ("http" :follow #[257 "\301\300\302=03Q!\207" = ["http" browse-url ":"] 5 "\n\n(fn URL)"]) ("ftp" :follow #[257 "\301\300\302=03Q!\207" = ["ftp" browse-url ":"] 5 "\n\n(fn URL)"]) ("help" :follow org-link--open-help) ("file" = :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" = :follow org-link--open-doi)) org-latex-format-headline-function = 'org-latex-format-headline-default-function org-link-elisp-confirm-function 'yes-or-no-p org-latex-format-inlinetask-function = 'org-latex-format-inlinetask-default-function org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME = CONTENTS)"] org-html-format-headline-function = 'org-html-format-headline-default-function org-src-window-setup 'current-window org-confirm-babel-evaluate nil org-agenda-custom-commands '(("l" "Lezen" tags "lezen") ("t" "TODO" ((agenda "" ((org-agenda-span = 1))) (todo "TODO")) ((org-agenda-files (remove = "~/Dropbox/00_db/werk.txt" org-agenda-files)))) ("w" "Alleen werk" ((agenda "" = ((org-agenda-span 1))) (todo "TODO")) ((org-agenda-files (quote = ("~/Dropbox/00_db/werk.txt"))))) ) org-agenda-todo-ignore-scheduled 'all org-default-notes-file "~/Dropbox/00_db/inbox.txt" )