branch: master
commit e9db958edc9ada06bdfcd76393edc2c9724be6cf
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Rename ivy-recentf -> counsel-recentf
Fixes #624
---
counsel.el | 11 +++++++++++
ivy.el | 11 +----------
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/counsel.el b/counsel.el
index 89584fe..7be33e7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1382,6 +1382,17 @@ When INITIAL-INPUT is non-nil, use it in the minibuffer
during completion."
(format "http://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s"
(substring url 1)))))))
+;;** `counsel-recentf'
+;;;###autoload
+(defun counsel-recentf ()
+ "Find a file on `recentf-list'."
+ (interactive)
+ (ivy-read "Recentf: " recentf-list
+ :action (lambda (f)
+ (with-ivy-window
+ (find-file f)))
+ :caller 'counsel-recentf))
+
;;** `counsel-locate'
(defcustom counsel-locate-cmd (cond ((eq system-type 'darwin)
'counsel-locate-cmd-noregex)
diff --git a/ivy.el b/ivy.el
index 58071a5..ed17333 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3095,16 +3095,7 @@ Skip buffers that match `ivy-ignore-buffers'."
:keymap ivy-switch-buffer-map
:caller 'ivy-switch-buffer-other-window))
-;;;###autoload
-(defun ivy-recentf ()
- "Find a file on `recentf-list'."
- (interactive)
- (ivy-read "Recentf: " recentf-list
- :action
- (lambda (f)
- (with-ivy-window
- (find-file f)))
- :caller 'ivy-recentf))
+(define-obsolete-function-alias 'ivy-recentf 'counsel-recentf "0.8.0")
(defun ivy-yank-word ()
"Pull next word from buffer into search string."