]> git.eshelyaron.com Git - emacs.git/commitdiff
* mpc.el (doc-view-mode): Silence --without-x compilation.
authorGlenn Morris <rgm@gnu.org>
Wed, 18 Sep 2013 04:44:20 +0000 (21:44 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 18 Sep 2013 04:44:20 +0000 (21:44 -0700)
lisp/ChangeLog
lisp/mpc.el

index b39bf12264200e0e8f3c9dff34a2e96e27dca122..7ddc54254359c56041acf00f85a1962a165fec9d 100644 (file)
@@ -8,6 +8,8 @@
        * mouse.el (mouse-yank-primary):
        Reorder to silence --without-x compilation.
 
+       * mpc.el (doc-view-mode): Silence --without-x compilation.
+
        * mail/rmailmm.el (rmail-mime-set-bulk-data):
        Silence --without-x compilation.
 
index bd61c261246077d341e2d3b996d9a4ba61402a83..2bb3f91abc9ed2bfdc7e85b70b3cd7226bdb2aef 100644 (file)
@@ -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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;