1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-31 11:13:50 +00:00

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

This commit is contained in:
Stefan Monnier 2013-10-07 23:48:01 -04:00
parent cc5da1ec4d
commit 4425606000
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
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.
(cvs-temp-buffer, cvs-make-cvs-buffer): Pass some vars in the lexical
environment of `eval'.

View File

@ -2009,7 +2009,9 @@ This is used so that they can be compared with `eq', which is needed for
posn))))
(let* ((plbuf (mpc-proc-cmd "playlist"))
(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
(goto-char (point-min))
(when (and re (re-search-forward re nil t))