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

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

[elpa] master f72cea2 253/272: swiper.el (swiper-mc): Restore interactiv


From: Oleh Krehel
Subject: [elpa] master f72cea2 253/272: swiper.el (swiper-mc): Restore interactive
Date: Mon, 25 Apr 2016 10:13:28 +0000

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

    swiper.el (swiper-mc): Restore interactive
    
    The command is bound in `swiper-map'.
    Add a warning for when it's called via "M-x", since it's not supposed to
    be called that way.
---
 swiper.el |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/swiper.el b/swiper.el
index 90e25b5..349c3d4 100644
--- a/swiper.el
+++ b/swiper.el
@@ -174,8 +174,12 @@
 (declare-function multiple-cursors-mode "ext:multiple-cursors-core")
 
 (defun swiper-mc ()
+  "Create a fake cursor for each `swiper' candidate."
+  (interactive)
   (unless (require 'multiple-cursors nil t)
     (error "multiple-cursors isn't installed"))
+  (unless (window-minibuffer-p)
+    (error "Call me only from `swiper'"))
   (let ((cands (nreverse ivy--old-cands)))
     (unless (string= ivy-text "")
       (ivy-exit-with-action



reply via email to

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