[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9d3d7de 132/184: counsel.el (counsel-slime-repl-history):
From: |
Oleh Krehel |
Subject: |
[elpa] master 9d3d7de 132/184: counsel.el (counsel-slime-repl-history): Add. |
Date: |
Wed, 16 Oct 2019 13:15:08 -0400 (EDT) |
branch: master
commit 9d3d7defe669b08d2c316ddf9c1133467e6c29af
Author: Brian Leung <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-slime-repl-history): Add.
ivy.el (ivy-history-contents): Accommodate sequences.
---
counsel.el | 9 +++++++++
ivy.el | 23 +++++++++++++----------
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/counsel.el b/counsel.el
index dbf0470..be433ef 100644
--- a/counsel.el
+++ b/counsel.el
@@ -4394,6 +4394,15 @@ An extra action allows to switch to the process buffer."
(require 'comint)
(counsel--browse-history comint-input-ring))
+(defvar slime-repl-input-history)
+
+;;;###autoload
+(defun counsel-slime-repl-history ()
+ "Browse Slime REPL history."
+ (interactive)
+ (require 'slime-repl)
+ (counsel--browse-history slime-repl-input-history))
+
;;** `counsel-hydra-heads'
(defvar hydra-curr-body-fn)
(declare-function hydra-keyboard-quit "ext:hydra")
diff --git a/ivy.el b/ivy.el
index 14b1002..c241b80 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4503,20 +4503,23 @@ This list can be rotated with
`ivy-rotate-preferred-builders'."
(define-key map (kbd "C-k") 'ivy-reverse-i-search-kill)
map))
-(defun ivy-history-contents (sym-or-ring)
- "Copy contents of SYM-OR-RING.
+(defun ivy-history-contents (history)
+ "Copy contents of HISTORY.
A copy is necessary so that we don't clobber any string attributes.
-Also set `ivy--reverse-i-search-symbol' to SYM-OR-RING."
- (setq ivy--reverse-i-search-symbol sym-or-ring)
- (cond ((symbolp sym-or-ring)
+Also set `ivy--reverse-i-search-symbol' to HISTORY."
+ (setq ivy--reverse-i-search-symbol history)
+ (cond ((symbolp history)
(delete-dups
- (copy-sequence (symbol-value sym-or-ring))))
- ((ring-p sym-or-ring)
+ (copy-sequence (symbol-value history))))
+ ((ring-p history)
(delete-dups
- (when (> (ring-size sym-or-ring) 0)
- (ring-elements sym-or-ring))))
+ (when (> (ring-size history) 0)
+ (ring-elements history))))
+ ((sequencep history)
+ (delete-dups
+ (copy-sequence history)))
(t
- (error "Expected a symbol or a ring: %S" sym-or-ring))))
+ (error "Expected a symbol, ring, or sequence: %S" history))))
(defun ivy-reverse-i-search ()
"Enter a recursive `ivy-read' session using the current history.
- [elpa] master 5d2938f 126/184: counsel.el (counsel-git-grep): Works with ivy--regex-fuzzy, (continued)
- [elpa] master 5d2938f 126/184: counsel.el (counsel-git-grep): Works with ivy--regex-fuzzy, Oleh Krehel, 2019/10/16
- [elpa] master 3a37741 147/184: swiper.el (swiper--update-input-ivy): Set case-fold-search, Oleh Krehel, 2019/10/16
- [elpa] master dea98fc 153/184: ivy.el (ivy-inhibit-action): Clean up docstring, Oleh Krehel, 2019/10/16
- [elpa] master 92f54f6 150/184: ivy.el (ivy-configure): Add :grep-p, Oleh Krehel, 2019/10/16
- [elpa] master abe5aa8 006/184: ivy.el (ivy-resume): Select original buffer for search functions, Oleh Krehel, 2019/10/16
- [elpa] master bfe4454 021/184: Fix swiper--isearch-filter-ignore-order return value, Oleh Krehel, 2019/10/16
- [elpa] master bb65c4e 039/184: swiper.el (swiper--current-window-start): Refactor, Oleh Krehel, 2019/10/16
- [elpa] master 76fff20 114/184: counsel-M-x: Propertize names of active modes., Oleh Krehel, 2019/10/16
- [elpa] master bfdda68 111/184: swiper.el (swiper-occur): Use ivy-occur-next-error, Oleh Krehel, 2019/10/16
- [elpa] master 84e1ab8 117/184: counsel.el (counsel-package): Refresh contents automatically, Oleh Krehel, 2019/10/16
- [elpa] master 9d3d7de 132/184: counsel.el (counsel-slime-repl-history): Add.,
Oleh Krehel <=
- [elpa] master 9e1b9a0 131/184: counsel.el (counsel-google-function): Add missing require, Oleh Krehel, 2019/10/16
- [elpa] master 5ff8b5e 133/184: ivy.el (ivy-completion-in-region-action): Use declare-function., Oleh Krehel, 2019/10/16
- [elpa] master 78dd554 134/184: ivy.el (ivy--exhibit): Handle ivy--reset-state initial call, Oleh Krehel, 2019/10/16
- [elpa] master c1ea2af 145/184: ivy.el (ivy-read): Fix conflict an existing read-key session, Oleh Krehel, 2019/10/16
- [elpa] master 589e03f 144/184: ivy.el (ivy-configure): Use for ivy-index-functions-alist, Oleh Krehel, 2019/10/16
- [elpa] master 64c0804 163/184: ivy.el (ivy-partial-or-done): Work with completion-cycle-threshold, Oleh Krehel, 2019/10/16
- [elpa] master 6f23c5e 152/184: ivy.el (ivy-occur-press): Re-use ivy-highlight-grep-commands, Oleh Krehel, 2019/10/16
- [elpa] master f46cdad 154/184: counsel.el (counsel-grep): Add :require-match, Oleh Krehel, 2019/10/16
- [elpa] master 2d840b8 157/184: ivy.el (ivy-configure): Add :sort-fn, Oleh Krehel, 2019/10/16
- [elpa] master f0451db 173/184: ivy.el (ivy-occur-revert-buffer): Don't error if the swiper buffer was killed, Oleh Krehel, 2019/10/16