1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

* lisp/mpc.el (mpc-volume-refresh): Check if buffer is live.

This commit is contained in:
Mark Oteiza 2015-10-14 08:52:44 -04:00
parent c6cbf6c06c
commit aebf282aec

View File

@ -1830,7 +1830,8 @@ A value of t means the main playlist.")
(mpc-volume-widget
(string-to-number (cdr (assq 'volume mpc-status)))))
(let ((status-buf (mpc-proc-buffer (mpc-proc) 'status)))
(when status-buf (with-current-buffer status-buf (force-mode-line-update)))))
(when (buffer-live-p status-buf)
(with-current-buffer status-buf (force-mode-line-update)))))
(defvar mpc-volume-step 5)