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

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

[elpa] master 5ff8b5e 133/184: ivy.el (ivy-completion-in-region-action):


From: Oleh Krehel
Subject: [elpa] master 5ff8b5e 133/184: ivy.el (ivy-completion-in-region-action): Use declare-function.
Date: Wed, 16 Oct 2019 13:15:08 -0400 (EDT)

branch: master
commit 5ff8b5e0176e9be9591f1d136b936382e6faf276
Author: Brian Leung <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-completion-in-region-action): Use declare-function.
    
    Re #2234
---
 ivy.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index c241b80..25d7635 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2400,13 +2400,15 @@ behavior."
    prompt collection predicate require-match initial-input
    history (or def "") inherit-input-method))
 
+(declare-function mc/all-fake-cursors "ext:multiple-cursors-core")
+
 (defun ivy-completion-in-region-action (str)
   "Insert STR, erasing the previous one.
 The previous string is between `ivy-completion-beg' and `ivy-completion-end'."
   (when (consp str)
     (setq str (cdr str)))
   (when (stringp str)
-    (let ((fake-cursors (and (fboundp 'mc/all-fake-cursors)
+    (let ((fake-cursors (and (require 'multiple-cursors-core nil t)
                              (mc/all-fake-cursors)))
           (pt (point))
           (beg ivy-completion-beg)



reply via email to

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