branch: externals/ivy-hydra
commit d28cd031a389cf37dc2b5c50319ca3c30fb9bea7
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (file-local-name): Define unless already defined
Fixes #2329
---
ivy.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ivy.el b/ivy.el
index 304b70c..5626023 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3199,6 +3199,11 @@ Should be run via minibuffer `post-command-hook'."
'ivy--exhibit)))
(ivy--exhibit)))
+(unless (fboundp 'file-local-name)
+ (defun file-local-name (file)
+ "Emacs has this function since 26.1."
+ (or (file-remote-p file 'localname) file)))
+
(defun ivy--magic-tilde-directory (dir)
"Return an appropriate home for DIR for when ~ or ~/ are entered."
(file-name-as-directory