# HG changeset patch # User Gerd Moellmann # Date 984578442 0 # Node ID 4b1f1bdaf67695eb142a27c80c09d9130b268432 # Parent 7225d251346b40821c8922202b3869c58eeca43e (toplevel): Test if `x-toolkit-scroll-bars' is bound before using it. It's not bound when configured without X, for instance. diff -r 7225d251346b -r 4b1f1bdaf676 lisp/scroll-bar.el --- a/lisp/scroll-bar.el Wed Mar 14 13:26:45 2001 +0000 +++ b/lisp/scroll-bar.el Wed Mar 14 14:00:42 2001 +0000 @@ -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 @@ ;;;; 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