Hi,

The attached patch takes advantage of customization type for the
`emms-source-file-default-directory' variable.

>From e205bae8105cd5a2f1e926b0368a31a2652082ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= <[email protected]>
Date: Wed, 20 Aug 2014 09:36:27 +0200
Subject: [PATCH] * lisp/emms-source-file.el
 (emms-source-file-default-directory): Use customization types

---
 lisp/emms-source-file.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/emms-source-file.el b/lisp/emms-source-file.el
index 43af1dc..a69bd65 100644
--- a/lisp/emms-source-file.el
+++ b/lisp/emms-source-file.el
@@ -50,9 +50,10 @@
   :prefix "emms-source-file-"
   :group 'emms-source)
 
+
 (defcustom emms-source-file-default-directory nil
   "*The default directory to look for media files."
-  :type 'string
+  :type '(choice (const :tag "None" nil) file)
   :group 'emms-source-file)
 
 (defcustom emms-source-file-directory-tree-function
-- 
1.8.0.2722.gc0242e5

-- 
Daimrod/Greg
_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to