Commit 44256060 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/mpc.el (mpc-songs-jump-to): Adjust to different playlist format.

parent cc5da1ec
2013-10-08 Stefan Monnier <monnier@iro.umontreal.ca> 2013-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
* mpc.el (mpc-songs-jump-to): Adjust to different playlist format.
* vc/pcvs.el: Use lexical-binding. * vc/pcvs.el: Use lexical-binding.
(cvs-temp-buffer, cvs-make-cvs-buffer): Pass some vars in the lexical (cvs-temp-buffer, cvs-make-cvs-buffer): Pass some vars in the lexical
environment of `eval'. environment of `eval'.
......
...@@ -2009,7 +2009,9 @@ This is used so that they can be compared with `eq', which is needed for ...@@ -2009,7 +2009,9 @@ This is used so that they can be compared with `eq', which is needed for
posn)))) posn))))
(let* ((plbuf (mpc-proc-cmd "playlist")) (let* ((plbuf (mpc-proc-cmd "playlist"))
(re (if song-file (re (if song-file
(concat "^\\([0-9]+\\):" (regexp-quote song-file) "$"))) ;; Newer MPCs apparently include "file: " in the buffer.
(concat "^\\([0-9]+\\):\\(?:file: \\)?"
(regexp-quote song-file) "$")))
(sn (with-current-buffer plbuf (sn (with-current-buffer plbuf
(goto-char (point-min)) (goto-char (point-min))
(when (and re (re-search-forward re nil t)) (when (and re (re-search-forward re nil t))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment