Mercurial > hg > xemacs-beta
diff lisp/specifier.el @ 4194:4f2243a0dc04
[xemacs-hg @ 2007-09-30 11:59:34 by aidan]
Provide x-resource, msprinter as specifier tags on all builds.
author | aidan |
---|---|
date | Sun, 30 Sep 2007 11:59:36 +0000 |
parents | 74b10360eef9 |
children | b75b075a9041 |
line wrap: on
line diff
--- 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 ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;