branch: master commit 4fef49861812a19b9769e04a929ebca20db96609 Author: Clemens Radermacher <clem...@posteo.net> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Use file-name-at-point-functions for file commands Fixes #2181 Fixes #2184 Re #1446 --- ivy.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ivy.el b/ivy.el index e6a158b..1094946 100644 --- a/ivy.el +++ b/ivy.el @@ -543,8 +543,7 @@ the restoring themselves.") ((thing-at-point 'url)) ((and (eq (ivy-state-collection ivy-last) #'read-file-name-internal) (let ((inhibit-message t)) - (ignore-errors - (ffap-file-at-point))))) + (run-hook-with-args-until-success 'file-name-at-point-functions)))) ((let ((s (thing-at-point 'symbol))) (and (stringp s) (if (string-match "\\`[`']?\\(.*?\\)'?\\'" s)