Function: mpc-cmd-add

mpc-cmd-add is a byte-compiled function defined in mpc.el.gz.

Signature

(mpc-cmd-add FILES &optional PLAYLIST)

Documentation

Add the songs FILES to PLAYLIST.

If PLAYLIST is t or nil or missing, use the main playlist.

Source Code

;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defun mpc-cmd-add (files &optional playlist)
  "Add the songs FILES to PLAYLIST.
If PLAYLIST is t or nil or missing, use the main playlist."
  (mpc-proc-cmd (mpc-proc-cmd-list
                 (mapcar (lambda (file)
                           (if (stringp playlist)
                               (list "playlistadd" playlist file)
                             (list "add" file)))
                         files)))
    (if (stringp playlist)
        (mpc-cmd-flush 'Playlist playlist)))