From ead2b569124f455b23e828650dfa8864aaba414b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 22 Oct 2014 21:09:16 -0400 Subject: Don't bind read-recent-file results --- lisp/init-buffile.el | 6 ++---- lisp/init-org.el | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lisp/init-buffile.el b/lisp/init-buffile.el index f932f66..8c3f6df 100644 --- a/lisp/init-buffile.el +++ b/lisp/init-buffile.el @@ -89,14 +89,12 @@ user." (defun km/recentf-find-file () "Find a file from `recentf-list'." (interactive) - (-when-let (file (km/read-recent-file)) - (find-file file))) + (find-file (km/read-recent-file))) (defun km/recentf-find-file-other-window () "Find a file from `recentf-list' in other window." (interactive) - (-when-let (file (km/read-recent-file)) - (find-file-other-window file))) + (find-file-other-window (km/read-recent-file))) (defun km/read-recent-file () (ido-completing-read "Choose recent file: " recentf-list nil t)) diff --git a/lisp/init-org.el b/lisp/init-org.el index cf524d7..b24f32e 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -68,8 +68,7 @@ PDF files are not ignored." (defun km/org-open-recent-file () "Open a file from `recentf-list' with `org-open-file'." (interactive) - (-when-let (file (km/read-recent-file)) - (org-open-file file))) + (org-open-file (km/read-recent-file))) (autoload 'magit-annex-present-files "magit-annex") -- cgit v1.2.3