org-download

a fork of abo-abo's org-download
git clone https://git.trogloxene.org/org-download.git
Log | Files | Refs | README

commit 6735717752d1ecfdb44745fff62a82d613cb8f26
parent 785b14464c7250bfd4264189f38659f428868a74
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date:   Mon, 14 Jan 2019 16:09:51 +0100

org-download.el (org-download-abbreviate-filename-function): Use only 1 arg

Fixes #87

Diffstat:
Morg-download.el | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/org-download.el b/org-download.el @@ -390,7 +390,7 @@ It's inserted before the image link and is used to annotate it.") (replace-match newpath)))) (defcustom org-download-abbreviate-filename-function #'file-relative-name - "Function that takes FILENAME and DIRECTORY and returns an abbreviated file name." + "Function that takes FILENAME and returns an abbreviated file name." :type '(choice (const :tag "relative" file-relative-name) (const :tag "absolute" expand-file-name))) @@ -413,8 +413,7 @@ It's inserted before the image link and is used to annotate it.") (insert (format org-download-link-format (org-link-escape - (funcall org-download-abbreviate-filename-function - filename (file-name-directory (buffer-name)))))) + (funcall org-download-abbreviate-filename-function filename)))) (org-display-inline-images)) (defun org-download--at-comment-p ()