diff --git a/lisp/ol.el b/lisp/ol.el index c3b030878..914732ed2 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -1326,8 +1326,9 @@ This function is meant to be used as a possible tool for (match-string 1 path))) (file-name (if (not option) path (substring path 0 (match-beginning 0))))) - (if (string-match "[*?{]" (file-name-nondirectory file-name)) - (dired file-name) + (if (and (string-match "[*?{]" (file-name-nondirectory file-name)) + (not (file-exists-p file-name))) + (dired file-name) (apply #'org-open-file file-name arg