]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.
authorEli Zaretskii <eliz@gnu.org>
Sun, 13 Jan 2013 17:47:45 +0000 (19:47 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 13 Jan 2013 17:47:45 +0000 (19:47 +0200)
 lisp/cus-start.el (all): Avoid warnings about
 scroll-bar-adjust-thumb-portion on platforms where it is not
 defined.

lisp/ChangeLog
lisp/cus-start.el

index 4bd5ba43be6e32365c9b6bf2050c188c8fab95ea..5721ac2415054466720968564096ed82d21d9e47 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * cus-start.el (all): Avoid warnings about
+       scroll-bar-adjust-thumb-portion on platforms where it is not
+       defined.
+
 2013-01-11  Jan Djärv  <jan.h.d@swipnet.se>
 
        * cus-start.el (all): Add scroll-bar-adjust-thumb-portion.
index e1d4eb837ca7c1265ec7d6a8e1b8491bd6c1e2b2..62e91fafcbf2c1203b4af94d185e8c15a9665bea 100644 (file)
@@ -576,6 +576,9 @@ since it could result in memory overflow and make Emacs crash."
                              (symbol-name symbol))
                       ;; Any function from fontset.c will do.
                       (fboundp 'new-fontset))
+                     ((equal "scroll-bar-adjust-thumb-portion"
+                             (symbol-name symbol))
+                      (featurep 'x))
                      (t t))))
     (if (not (boundp symbol))
        ;; If variables are removed from C code, give an error here!