From 3f0ce0bfe7fa49149c73e27e77224a3e22f61769 Mon Sep 17 00:00:00 2001
From: Kyle Meyer <kyle@kyleam.com>
Date: Sun, 4 May 2014 23:18:22 -0400
Subject: Make maxlevel optional in org-set-refiling-buffer

---
 lisp/init-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lisp')

diff --git a/lisp/init-org.el b/lisp/init-org.el
index 9ad29a0..9068823 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -239,7 +239,7 @@ A numeric prefix can be given to set MAXLEVEL (defaults to 2)."
    (org-icompleting-read "Buffer: " (mapcar 'buffer-name
                                             (org-buffer-list 'files)))))
 
-(defun km/org-set-refiling-buffer (maxlevel)
+(defun km/org-set-refiling-buffer (&optional maxlevel)
   "Choose buffer to set as sole target in `org-refile-targets'.
 If `org-refile-targets' is already a local variable, restore the
 global value. A numeric prefix can be given to set
-- 
cgit v1.2.3