X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=blobdiff_plain;f=media.el;h=ebddca7cf077568d03a8daab70d8f61801e3321a;hp=b7b1a4e0c8ef599ffaf7aad10597a8ccb6446c6c;hb=b01b564e2f6c23ab0b5440c7473c724901c600f5;hpb=1ecbbd03909c6f7dda43117d8e8054a39427cb61 diff --git a/media.el b/media.el index b7b1a4e..ebddca7 100644 --- a/media.el +++ b/media.el @@ -53,7 +53,7 @@ (defgroup media () "Major mode to control media players" - :version "1.2.1") + :version "1.2.2") (defcustom media/player-api "media-mplayer" "The file to load for the abstract layer with the media player." @@ -103,6 +103,11 @@ title to display in the list (convenient for internet radios)." :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 @@ -620,9 +625,11 @@ returns nil if no id3 tags could be found." (title (or (and (consp c) (cdr c)) url))) (if (string-match "^\\(http\\|mms\\)://" url) (media/insert-url (cons url title) 0) - (if (file-regular-p url) (media/insert-file url 0) - (if (file-directory-p url) (media/insert-dir url 0) - (error "Unknown type `%s'" url)))))) + (if (file-exists-p url) + (if (file-regular-p url) (media/insert-file url 0) + (if (file-directory-p url) (media/insert-dir url 0) + (error "Unknown type `%s'" url)))) + ))) list)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -914,7 +921,7 @@ which stops when the songs ends." (concat " " media/player-id - (if media/continue-mode "*") + (if media/continue-mode media/continue-mode-hint) " " (if media/current-information