[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7cea819 18/67: ivy.el: Add `ivy-exit'
From: |
Oleh Krehel |
Subject: |
[elpa] master 7cea819 18/67: ivy.el: Add `ivy-exit' |
Date: |
Sun, 22 Mar 2015 17:33:54 +0000 |
branch: master
commit 7cea8194940e49680bb1cc7c690c7412632234bd
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el: Add `ivy-exit'
* ivy.el (ivy-done): Update.
(ivy-read): Update.
(ivy-exit): New defvar.
---
ivy.el | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ivy.el b/ivy.el
index e4c7fe0..b922df5 100644
--- a/ivy.el
+++ b/ivy.el
@@ -72,6 +72,7 @@
(interactive)
(delete-minibuffer-contents)
(insert ivy--current)
+ (setq ivy-exit 'done)
(exit-minibuffer))
(defun ivy-next-line ()
@@ -117,6 +118,7 @@ UPDATE-FN is called each time the current candidate(s) is
changed."
(setq ivy-text "")
(setq ivy--all-candidates collection)
(setq ivy--update-fn update-fn)
+ (setq ivy-exit nil)
(unwind-protect
(minibuffer-with-setup-hook
#'ivy--minibuffer-setup
@@ -126,6 +128,10 @@ UPDATE-FN is called each time the current candidate(s) is
changed."
(defvar ivy-text ""
"Stores the user's string as it is typed in.")
+(defvar ivy-exit nil
+ "Store 'done if the completion was successfully selected.
+Otherwise, store nil.")
+
;;* Implementation
;;** Regex
(defvar ivy--subexps 0
- [elpa] master 16be7e1 01/67: Initial import, (continued)
- [elpa] master 16be7e1 01/67: Initial import, Oleh Krehel, 2015/03/22
- [elpa] master ff0ee94 06/67: Add dependency on emacs 24.1, Oleh Krehel, 2015/03/22
- [elpa] master 1c0b30b 07/67: add autoload cookie for lazy loading, Oleh Krehel, 2015/03/22
- [elpa] master 1099ebf 08/67: Use cl-lib macros instead of cl.el, Oleh Krehel, 2015/03/22
- [elpa] master 7b86747 09/67: swiper.el (swiper--regex): Update signature, Oleh Krehel, 2015/03/22
- [elpa] master a267b34 10/67: familiar isearch key bindings while helm is active, Oleh Krehel, 2015/03/22
- [elpa] master a817342 14/67: ivy.el: Improve the highlighting in the minibuffer, Oleh Krehel, 2015/03/22
- [elpa] master 97ab66a 13/67: README.md: Update, Oleh Krehel, 2015/03/22
- [elpa] master eb829a9 16/67: Account for zero-length regex matches, Oleh Krehel, 2015/03/22
- [elpa] master 9bcf1dc 12/67: Update dependencies., Oleh Krehel, 2015/03/22
- [elpa] master 7cea819 18/67: ivy.el: Add `ivy-exit',
Oleh Krehel <=
- [elpa] master eb1def0 17/67: Add initial-input optional argument, Oleh Krehel, 2015/03/22
- [elpa] master 2f5cc11 15/67: swiper.el: Use `with-selected-window' instead of `with-current-buffer', Oleh Krehel, 2015/03/22
- [elpa] master 02065be 19/67: swiper.el: Restore original point on canceling, Oleh Krehel, 2015/03/22
- [elpa] master 6a874a4 11/67: Add `ivy' back end, Oleh Krehel, 2015/03/22
- [elpa] master f268cc8 21/67: Reveal invisible overlays, Oleh Krehel, 2015/03/22
- [elpa] master 835208a 20/67: Inherit standard faces by default, Oleh Krehel, 2015/03/22
- [elpa] master f148a94 24/67: Fix use of cl-incf, Oleh Krehel, 2015/03/22
- [elpa] master 2ed9ee2 23/67: Require delsel for `minibuffer-keyboard-quit', Oleh Krehel, 2015/03/22
- [elpa] master 1ca1660 22/67: swiper.el: Save position before last search, Oleh Krehel, 2015/03/22
- [elpa] master 02ca7a1 25/67: Add anchoring, Oleh Krehel, 2015/03/22