summaryrefslogtreecommitdiff
path: root/lisp/ol-bookmark.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ol-bookmark.el')
-rw-r--r--lisp/ol-bookmark.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ol-bookmark.el b/lisp/ol-bookmark.el
index e9178fb..cfb58dc 100644
--- a/lisp/ol-bookmark.el
+++ b/lisp/ol-bookmark.el
@@ -59,6 +59,8 @@ Otherwise prompt the user for the right bookmark to use."
(defun org-bookmark-store-link ()
"Store a link to the current line's bookmark in bookmark list."
+ (require 'dired)
+ (declare-function dired-get-filename "dired" (&optional localp no-error-if-not-filep))
(let (file bookmark bmks)
(cond ((and org-bookmark-in-dired
(eq major-mode 'dired-mode))