# HG changeset patch # User aidan # Date 1191153576 0 # Node ID 4f2243a0dc04f429ec9f28e74c3af7dceec356bf # Parent 6438d53aabcffbf25cfb69258cf3115e9da763c4 [xemacs-hg @ 2007-09-30 11:59:34 by aidan] Provide x-resource, msprinter as specifier tags on all builds. diff -r 6438d53aabcf -r 4f2243a0dc04 lisp/ChangeLog --- a/lisp/ChangeLog Sun Sep 30 11:38:00 2007 +0000 +++ b/lisp/ChangeLog Sun Sep 30 11:59:36 2007 +0000 @@ -1,3 +1,15 @@ +2007-09-30 Aidan Kehoe + + * x-faces.el: + * x-faces.el ('x-resource)): Removed. + Specifier tag moved to specifier.el to ensure availability on + non-X builds. + * specifier.el: + Provide x, tty, mswindows, msprinter, gtk and carbon as device + tags that never match on builds that don't support them. + * specifier.el ('x-resource)): New. + Moved here from x-faces.el + 2007-09-26 Adrian Aichner * package-get.el (package-get-download-sites): Introduce diff -r 6438d53aabcf -r 4f2243a0dc04 lisp/specifier.el --- a/lisp/specifier.el Sun Sep 30 11:38:00 2007 +0000 +++ b/lisp/specifier.el Sun Sep 30 11:59:36 2007 +0000 @@ -605,15 +605,10 @@ ;; ;; from producing an error if no X support was compiled in. -(or (valid-specifier-tag-p 'x) - (define-specifier-tag 'x (lambda (dev) (eq (device-type dev) 'x)))) -(or (valid-specifier-tag-p 'tty) - (define-specifier-tag 'tty (lambda (dev) (eq (device-type dev) 'tty)))) -(or (valid-specifier-tag-p 'mswindows) - (define-specifier-tag 'mswindows (lambda (dev) - (eq (device-type dev) 'mswindows)))) -(or (valid-specifier-tag-p 'gtk) - (define-specifier-tag 'gtk (lambda (dev) (eq (device-type dev) 'gtk)))) +(loop + for tag in '(x tty mswindows msprinter gtk carbon) + do (unless (valid-specifier-tag-p tag) + (define-specifier-tag tag #'ignore))) ;; Add special tag for use by initialization code. Code that ;; sets up default specs should use this tag. Code that needs to @@ -623,6 +618,11 @@ (define-specifier-tag 'default) +;; The x-resource specifier tag is provide so the X resource initialization +;; code can be overridden by custom without trouble. + +(define-specifier-tag 'x-resource) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; "Heuristic" specifier functions ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff -r 6438d53aabcf -r 4f2243a0dc04 lisp/x-faces.el --- a/lisp/x-faces.el Sun Sep 30 11:38:00 2007 +0000 +++ b/lisp/x-faces.el Sun Sep 30 11:59:36 2007 +0000 @@ -654,7 +654,11 @@ ;;; result in a crash. ;; When we initialise a face from an X resource, note that we did so. -(define-specifier-tag 'x-resource) +;; +;; Now in specifier.el so run-time checks for it on non-X builds don't +;; error. + +; (define-specifier-tag 'x-resource) (defun x-init-face-from-resources (face &optional locale set-anyway)