]> git.eshelyaron.com Git - emacs.git/commitdiff
(all): Don't complain about fringe-related
authorEli Zaretskii <eliz@gnu.org>
Fri, 9 Sep 2005 16:22:11 +0000 (16:22 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 9 Sep 2005 16:22:11 +0000 (16:22 +0000)
built-ins if fringes are not supported.  Ditto about
selection-related built-ins.  Fix the test for GTK-related
built-ins.

lisp/ChangeLog
lisp/cus-start.el

index 078d278064fc9f7dca78578cbad5f7aafe0dad24..fd85c39f3a3a93c863e68e2690c7283da2fccd16 100644 (file)
@@ -1,5 +1,10 @@
 2005-09-09  Eli Zaretskii  <eliz@gnu.org>
 
+       * cus-start.el (all): Don't complain about fringe-related
+       built-ins if fringes are not supported.  Ditto about
+       selection-related built-ins.  Fix the test for GTK-related
+       built-ins.
+
        * menu-bar.el ("Split Window", "Postscript Print Buffer (B+W)")
        ("Postscript Print Buffer", "Print Region", "Save As...")
        ("Save", "Insert File...", "Open Directory...")
index 2f3cd5d0e07c88c12009fca3fd6d7dd52b65398f..c09e3152376889034c6cb699bc50065b2a7ffe20 100644 (file)
@@ -366,9 +366,15 @@ since it could result in memory overflow and make Emacs crash."
                      ((string-match "\\`w32-" (symbol-name symbol))
                       (eq system-type 'windows-nt))
                      ((string-match "\\`x-.*gtk" (symbol-name symbol))
-                      (or (boundp 'gtk) (not (eq system-type 'windows-nt))))
+                      (or (boundp 'gtk)
+                          (and (display-graphic-p)
+                               (not (eq system-type 'windows-nt)))))
                      ((string-match "\\`x-" (symbol-name symbol))
                       (fboundp 'x-create-frame))
+                     ((string-match "selection" (symbol-name symbol))
+                      (fboundp 'x-selection-exists-p))
+                     ((string-match "fringe" (symbol-name symbol))
+                      (fboundp 'define-fringe-bitmap))
                      (t t))))
     (if (not (boundp symbol))
        ;; If variables are removed from C code, give an error here!