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:
parent
cc5da1ec4d
commit
4425606000
@ -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'.
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user