]> code.delx.au - gnu-emacs/blobdiff - lisp/cus-start.el
Merged from miles@gnu.org--gnu-2005 (patch 681)
[gnu-emacs] / lisp / cus-start.el
index 9bb26ec3d08f9d147e79dde5ce1daa891bbf74da..a851d32d296ef0fadee1cc5ec3f9d82831e585b1 100644 (file)
@@ -394,14 +394,10 @@ since it could result in memory overflow and make Emacs crash."
                       (eq system-type 'ms-dos))
                      ((string-match "\\`w32-" (symbol-name symbol))
                       (eq system-type 'windows-nt))
-                     ((string-match "\\`mac-" (symbol-name symbol))
-                      (eq window-system 'mac))
+                     ((string-match "\\`mac-" (symbol-name symbol))
+                      (or (eq system-type 'mac) (eq system-type 'darwin)))
                      ((string-match "\\`x-.*gtk" (symbol-name symbol))
-                      (or (boundp 'gtk)
-                          (and window-system
-                               (not (eq window-system 'pc))
-                               (not (eq window-system 'mac))
-                               (not (eq system-type 'windows-nt)))))
+                      (featurep 'gtk))
                      ((string-match "\\`x-" (symbol-name symbol))
                       (fboundp 'x-create-frame))
                      ((string-match "selection" (symbol-name symbol))