[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 592b692 07/19: Add defcustom for ivy-backward-delete-char
From: |
Oleh Krehel |
Subject: |
[elpa] master 592b692 07/19: Add defcustom for ivy-backward-delete-char |
Date: |
Thu, 16 Apr 2015 12:18:10 +0000 |
branch: master
commit 592b692b61e320a13621961d60765899d2ccbe15
Author: Kevin <address@hidden>
Commit: Kevin <address@hidden>
Add defcustom for ivy-backward-delete-char
---
ivy.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ivy.el b/ivy.el
index 2b7af6a..c2749c9 100644
--- a/ivy.el
+++ b/ivy.el
@@ -59,6 +59,10 @@ Set this to nil if you don't want the count."
"Whether to wrap around after the first and last candidate."
:type 'boolean)
+(defcustom ivy-backward-delete-char-function `(minibuffer-keyboard-quit)
+ "Function called when ivy-backward-delete-char throws an error."
+ :type 'function)
+
;;* User Visible
;;** Keymap
(require 'delsel)
@@ -155,12 +159,12 @@ If the input is empty, select the previous history
element instead."
(defun ivy-backward-delete-char ()
"Forward to `backward-delete-char'.
-On error (read-only), quit without selecting."
+On error (read-only), call ivy-backward-delete-char-function."
(interactive)
(condition-case nil
(backward-delete-char 1)
(error
- (minibuffer-keyboard-quit))))
+ (eval ivy-backward-delete-char-function))))
;;** Entry Point
(defun ivy-read (prompt collection
- [elpa] master 609577e 12/19: Fix invalid package header line, (continued)
- [elpa] master 609577e 12/19: Fix invalid package header line, Oleh Krehel, 2015/04/16
- [elpa] master e816884 03/19: Default ARG to 1 for arrows, Oleh Krehel, 2015/04/16
- [elpa] master a8a1f65 02/19: Add numeric arguments to arrows, Oleh Krehel, 2015/04/16
- [elpa] master 0477214 08/19: Fix `ivy-backward-delete-char-function', Oleh Krehel, 2015/04/16
- [elpa] master 6dd1068 04/19: swiper.el (swiper-query-replace): Enable recursive minibuffers, Oleh Krehel, 2015/04/16
- [elpa] master 3b78e0e 18/19: swiper.el: Bump version, Oleh Krehel, 2015/04/16
- [elpa] master 22139ae 19/19: Merge commit '3b78e0e503f4763f8a2d77eeacfc91213ec5532e' from swiper, Oleh Krehel, 2015/04/16
- [elpa] master c59752b 16/19: Update sorting order, make sure that perfect match is selected, Oleh Krehel, 2015/04/16
- [elpa] master 75aa14d 17/19: Fix thing-at-point in describe-function and -variable, Oleh Krehel, 2015/04/16
- [elpa] master 6a098c6 15/19: Add ivy-mode, Oleh Krehel, 2015/04/16
- [elpa] master 592b692 07/19: Add defcustom for ivy-backward-delete-char,
Oleh Krehel <=
- [elpa] master 048f479 13/19: Add four more commands, Oleh Krehel, 2015/04/16
- [elpa] master be452cc 14/19: swiper.el (swiper-font-lock-ensure): Exclude org-agenda-mode, Oleh Krehel, 2015/04/16
- [elpa] master ba0590f 09/19: counsel.el: Update comments, Oleh Krehel, 2015/04/16