Update.
[elisp.git] / media.el
index d380970..3fb9352 100644 (file)
--- a/media.el
+++ b/media.el
@@ -103,6 +103,11 @@ title to display in the list (convenient for internet radios)."
   :type 'boolean
   :group 'media)
 
   :type 'boolean
   :group 'media)
 
+(defcustom media/continue-mode-hint "*"
+  "What to append to the MPlayer string when in repeat mode"
+  :type 'string
+  :group 'media)
+
 (defcustom media/expert nil
   "Should the keymap help be shown?"
   :type 'boolean
 (defcustom media/expert nil
   "Should the keymap help be shown?"
   :type 'boolean
@@ -661,8 +666,7 @@ returns nil if no id3 tags could be found."
               (push (cons url (cons title time)) (cdr (assoc playlist list)))
               )))))
 
               (push (cons url (cons title time)) (cdr (assoc playlist list)))
               )))))
 
-    (save-excursion
-      (set-buffer (find-file-noselect media/playlist-file))
+    (with-current-buffer (find-file-noselect media/playlist-file)
       (erase-buffer)
       (mapc (lambda (x)
               (insert "PLAYLIST:" (car x) "\n")
       (erase-buffer)
       (mapc (lambda (x)
               (insert "PLAYLIST:" (car x) "\n")
@@ -916,7 +920,7 @@ which stops when the songs ends."
    (concat
     " "
     media/player-id
    (concat
     " "
     media/player-id
-    (if media/continue-mode "*")
+    (if media/continue-mode media/continue-mode-hint)
     " "
 
     (if media/current-information
     " "
 
     (if media/current-information