diff options
author | Glenn Morris <rgm@gnu.org> | 2013-09-17 21:44:20 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-09-17 21:44:20 -0700 |
commit | cd8edbbe673d636e262fa499cfee913b640d2e1c (patch) | |
tree | 07913e76e825262dc7eb0010af4e87f4b08e776c /lisp/mpc.el | |
parent | 7e58af4b13a4fdd32cb052a08bc6a7121fd3a6a4 (diff) | |
download | emacs-cd8edbbe673d636e262fa499cfee913b640d2e1c.tar.gz |
* mpc.el (doc-view-mode): Silence --without-x compilation.
Diffstat (limited to 'lisp/mpc.el')
-rw-r--r-- | lisp/mpc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mpc.el b/lisp/mpc.el index bd61c261246..2bb3f91abc9 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el @@ -1139,7 +1139,8 @@ If PLAYLIST is t or nil or missing, use the main playlist." "Major mode for the features common to all buffers of MPC." (buffer-disable-undo) (setq buffer-read-only t) - (setq-local tool-bar-map mpc-tool-bar-map) + (if (boundp 'tool-bar-map) ; not if --without-x + (setq-local tool-bar-map mpc-tool-bar-map)) (setq-local truncate-lines t)) ;;; The mpc-status-mode buffer ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |