]> git.eshelyaron.com Git - emacs.git/commitdiff
(toplevel): Test if `x-toolkit-scroll-bars' is
authorGerd Moellmann <gerd@gnu.org>
Wed, 14 Mar 2001 14:00:42 +0000 (14:00 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 14 Mar 2001 14:00:42 +0000 (14:00 +0000)
bound before using it.  It's not bound when configured without X,
for instance.

lisp/scroll-bar.el

index 5c2a47877a8b8c951568ccf9fefd5ce990119019..4ab77a542e1a9b1f9ab9bb6e433a788cdd0f411e 100644 (file)
@@ -1,6 +1,7 @@
 ;;; scroll-bar.el --- window system-independent scroll bar support.
 
-;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 1995, 1999, 2000, 2001
+;;  Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 ;; Keywords: hardware
@@ -330,7 +331,7 @@ EVENT should be a scroll bar click."
 ;;;; Bindings.
 
 ;;; For now, we'll set things up to work like xterm.
-(cond (x-toolkit-scroll-bars
+(cond ((and (boundp 'x-toolkit-scroll-bars) x-toolkit-scroll-bars)
        (global-set-key [vertical-scroll-bar mouse-1]
                       'scroll-bar-toolkit-scroll))
       (t