aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-05-28 10:52:50 +0000
committerEli Zaretskii2000-05-28 10:52:50 +0000
commit557262167faa4a0c25fa69bee7c6fbb44f6f7eaa (patch)
tree0a051450c974f3db90ab308822fb1913f0d9fdbe
parenta205e32a7298df36c5c0895453633136d18ebf73 (diff)
downloademacs-557262167faa4a0c25fa69bee7c6fbb44f6f7eaa.tar.gz
emacs-557262167faa4a0c25fa69bee7c6fbb44f6f7eaa.zip
(speedbar-use-images, speedbar-update-flag)
(speedbar-easymenu-definition-base): Use display-graphic-p where available, instead of window-system.
-rw-r--r--lisp/speedbar.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 577a4795e4f..f74566fe5a6 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -489,7 +489,9 @@ hierarchy would be replaced with the new directory."
489 489
490(defcustom speedbar-use-images (and (or (fboundp 'defimage) 490(defcustom speedbar-use-images (and (or (fboundp 'defimage)
491 (fboundp 'make-image-specifier)) 491 (fboundp 'make-image-specifier))
492 window-system) 492 (if (fboundp 'display-graphic-p)
493 (display-graphic-p)
494 window-system))
493 "*Non nil if speedbar should display icons." 495 "*Non nil if speedbar should display icons."
494 :group 'speedbar 496 :group 'speedbar
495 :type 'boolean) 497 :type 'boolean)
@@ -733,7 +735,9 @@ PATH-EXPRESSION to `speedbar-ignored-path-expressions'."
733 (or (fboundp 'run-with-idle-timer) 735 (or (fboundp 'run-with-idle-timer)
734 (fboundp 'start-itimer) 736 (fboundp 'start-itimer)
735 (boundp 'post-command-idle-hook)) 737 (boundp 'post-command-idle-hook))
736 window-system) 738 (if (fboundp 'display-graphic-p)
739 (display-graphic-p)
740 window-system))
737 "*Non-nil means to automatically update the display. 741 "*Non-nil means to automatically update the display.
738When this is nil then speedbar will not follow the attached frame's path. 742When this is nil then speedbar will not follow the attached frame's path.
739When speedbar is active, use: 743When speedbar is active, use:
@@ -876,7 +880,9 @@ This basically creates a sparse keymap, and makes it's parent be
876 :style toggle :selected speedbar-update-flag]) 880 :style toggle :selected speedbar-update-flag])
877 (if (and (or (fboundp 'defimage) 881 (if (and (or (fboundp 'defimage)
878 (fboundp 'make-image-specifier)) 882 (fboundp 'make-image-specifier))
879 window-system) 883 (if (fboundp 'display-graphic-p)
884 (display-graphic-p)
885 window-system))
880 (list 886 (list
881 ["Use Images" speedbar-toggle-images 887 ["Use Images" speedbar-toggle-images
882 :style toggle :selected speedbar-use-images])) 888 :style toggle :selected speedbar-use-images]))