Function: mpc-goto-playing-song
mpc-goto-playing-song is an interactive and byte-compiled function
defined in mpc.el.gz.
Signature
(mpc-goto-playing-song)
Documentation
Move point to the currently playing song in the "*Songs*" buffer.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defun mpc-goto-playing-song ()
"Move point to the currently playing song in the \"*Songs*\" buffer."
(interactive)
(let* ((buf (mpc-proc-buffer (mpc-proc) 'songs))
(win (get-buffer-window buf)))
(when (and (buffer-live-p buf) win)
(select-window win)
(with-current-buffer buf
(when (and overlay-arrow-position
(eq (marker-buffer overlay-arrow-position) buf))
(goto-char (marker-position overlay-arrow-position)))))))