summaryrefslogtreecommitdiff
path: root/lisp/cus-start.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r--lisp/cus-start.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 71565963e3d..87393e43ff7 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -369,9 +369,16 @@ 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 window-system
+ (not (eq window-system 'pc))
+ (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!