Variable: mpc-status-callbacks

mpc-status-callbacks is a variable defined in mpc.el.gz.

Value

((state . mpc--status-timers-refresh)
 (state . mpc--faster-toggle-refresh) (volume . mpc-volume-refresh)
 (file . mpc-songpointer-refresh) (file . mpc-notifications-notify)
 (song . mpc-songpointer-refresh) (updating_db . mpc-updated-db)
 (updating_db . mpc--status-timers-refresh) (t . mpc-current-refresh))

Documentation

Alist associating properties to the functions that care about them.

Each entry has the form (PROP . FUN) to call FUN (without arguments) whenever property PROP changes. PROP can be t, which means to call FUN for any change whatsoever.

Source Code

;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defvar mpc-status-callbacks
  '((state  . mpc--status-timers-refresh)
    ;; (song   . mpc--queue-refresh)
    ;; (state  . mpc--queue-refresh)       ;To detect the end of the last song.
    (state  . mpc--faster-toggle-refresh) ;Only ffwd/rewind while play/pause.
    (volume . mpc-volume-refresh)
    (file   . mpc-songpointer-refresh)
    (file   . mpc-notifications-notify)
    ;; The song pointer may need updating even if the file doesn't change,
    ;; if the same song appears multiple times in a row.
    (song   . mpc-songpointer-refresh)
    (updating_db . mpc-updated-db)
    (updating_db . mpc--status-timers-refresh)
    (t      . mpc-current-refresh))
  "Alist associating properties to the functions that care about them.
Each entry has the form (PROP . FUN) to call FUN (without arguments)
whenever property PROP changes.  PROP can be t, which means to call
FUN for any change whatsoever.")