aboutsummaryrefslogtreecommitdiff
path: root/emms-metaplaylist-mode.el
diff options
context:
space:
mode:
authorlucas <lucas>2006-04-20 22:31:00 +0000
committerlucas <mwolson@gnu.org>2006-04-20 22:31:00 +0000
commite14816295f37f7c03531b16cbba95bcaaac82a74 (patch)
tree4456c1ffe435fe5d3950c4d27837b3de3a50edb2 /emms-metaplaylist-mode.el
parent13ff7c02ef108cd42a673070f5d8989cea1c8302 (diff)
emms-metaplaylist-mode.el: new function to create a new empty EMMS playlist.
darcs-hash:20060420223126-4f952-0ed23bd23c06cf7febd995919cb8b95b75b01765.gz
Diffstat (limited to 'emms-metaplaylist-mode.el')
-rw-r--r--emms-metaplaylist-mode.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emms-metaplaylist-mode.el b/emms-metaplaylist-mode.el
index e2a2ab9..df7c2b0 100644
--- a/emms-metaplaylist-mode.el
+++ b/emms-metaplaylist-mode.el
@@ -137,6 +137,21 @@
(error "No Emms playlist buffers"))))
;;; --------------------------------------------------------
+;;; Playlist Management : creation, deletion (?)
+;;; --------------------------------------------------------
+
+(defun emms-metaplaylist-new-buffer (buffer-name)
+ "Creates a new buffer called buffer-name, which will be ready
+to host EMMS tracks."
+ (interactive "sBuffer Name: ")
+ (if(get-buffer buffer-name)
+ (error "Buffer must not exist.")
+ (let ((buf (get-buffer-create buffer-name)))
+ (with-current-buffer buf
+ (setq emms-playlist-buffer-p t)))
+ (message "Buffer created")))
+
+;;; --------------------------------------------------------
;;; Mode entry
;;; --------------------------------------------------------