Mercurial > hg > xemacs-beta
diff lisp/specifier.el @ 211:78478c60bfcd r20-4b4
Import from CVS: tag r20-4b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:05:51 +0200 |
parents | 41ff10fd062f |
children | 727739f917cb |
line wrap: on
line diff
--- a/lisp/specifier.el Mon Aug 13 10:05:01 2007 +0200 +++ b/lisp/specifier.el Mon Aug 13 10:05:51 2007 +0200 @@ -405,4 +405,20 @@ (define-specifier-tag 'win 'device-on-window-system-p) +;; Add tags for device types that don't have support compiled +;; into the binary that we're about to dump. This will prevent +;; code like +;; +;; (set-face-foreground 'default "black" nil '(x color)) +;; +;; 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)))) + ;;; specifier.el ends here