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

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

[elpa] master 8de2930 221/272: ivy.el: Improve "M-n"


From: Oleh Krehel
Subject: [elpa] master 8de2930 221/272: ivy.el: Improve "M-n"
Date: Mon, 25 Apr 2016 10:13:26 +0000

branch: master
commit 8de29309890329c7f7a150bdcfc2b664f2f8b1fe
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el: Improve "M-n"
    
    Now uses `ffap-file-at-point' only for 'read-file-name-internal.
---
 ivy.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 4f46ae4..86021d6 100644
--- a/ivy.el
+++ b/ivy.el
@@ -305,7 +305,8 @@ This should eventually become a stack so that you could use
   "Return a string that corresponds to the current thing at point."
   (or
    (thing-at-point 'url)
-   (ffap-file-at-point)
+   (and (eq (ivy-state-collection ivy-last) 'read-file-name-internal)
+        (ffap-file-at-point))
    (let (s)
      (cond ((stringp (setq s (thing-at-point 'symbol)))
             (if (string-match "\\`[`']?\\(.*?\\)'?\\'" s)



reply via email to

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