emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra d28cd03 048/395: ivy.el (file-local-name): De


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra d28cd03 048/395: ivy.el (file-local-name): Define unless already defined
Date: Thu, 25 Feb 2021 08:31:28 -0500 (EST)

branch: externals/ivy-hydra
commit d28cd031a389cf37dc2b5c50319ca3c30fb9bea7
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]