Madhu writes: Hi Madhu, > Thanks, something like the attached? the implementation of "turn on > url-handler-mode temporarily" looks a bit gross but i guess it can't > be avoided. should call to turn it on be outside the > minibuffer-setup-hook? Perhaps, I haven't tested. However, the leading comment doesn't match anymore the implementation (default-directory is let-bound now); better you'll adjust it. I've checked the problem in ffap.el. It looks like we could use a much simpler solution: implement unhandled-file-name-directory in ffap--url-file-handler. Something like