summaryrefslogtreecommitdiff
path: root/lisp/mpc.el
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2015-10-14 08:52:44 -0400
committerMark Oteiza <mvoteiza@udel.edu>2015-10-14 08:52:44 -0400
commitaebf282aec46e3e8246a3dce535ecccf173c391b (patch)
tree4d362d656529d09e88da96b99b6a13975c75028a /lisp/mpc.el
parentc6cbf6c06cceaf1f8d855e070df3c3d5a0bdf8e6 (diff)
downloademacs-aebf282aec46e3e8246a3dce535ecccf173c391b.tar.gz
emacs-aebf282aec46e3e8246a3dce535ecccf173c391b.tar.bz2
emacs-aebf282aec46e3e8246a3dce535ecccf173c391b.zip
* lisp/mpc.el (mpc-volume-refresh): Check if buffer is live.
Diffstat (limited to 'lisp/mpc.el')
-rw-r--r--lisp/mpc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mpc.el b/lisp/mpc.el
index d1524e7568b..0f8283aeb03 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -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)