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:
parent
c6cbf6c06c
commit
aebf282aec
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user