Commit d4021fd9 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(ffap-read-file-or-url-internal): Handle case the

DIR or STRING are nil.
parent dd31e4e8
......@@ -1216,6 +1216,10 @@ which may actually result in an url rather than a filename."
(t t))))
(defun ffap-read-file-or-url-internal (string dir action)
(unless dir
(setq dir default-directory))
(unless string
(setq string default-directory))
(if (ffap-url-p string)
(ffap-read-url-internal string dir action)
(read-file-name-internal string dir action)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment