Mercurial > hg > xemacs-beta
diff lisp/faces.el @ 213:78f53ef88e17 r20-4b5
Import from CVS: tag r20-4b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:06:47 +0200 |
parents | 41ff10fd062f |
children | d44af0c54775 |
line wrap: on
line diff
--- a/lisp/faces.el Mon Aug 13 10:05:53 2007 +0200 +++ b/lisp/faces.el Mon Aug 13 10:06:47 2007 +0200 @@ -962,8 +962,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-make-font-bold locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-make-font-bold locale)) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-make-font-bold locale)) )) '(([default] . [bold]) ([bold] . t) @@ -987,8 +987,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-make-font-italic locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-make-font-italic locale)) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-make-font-italic locale)) )) '(([default] . [italic]) ([bold] . [bold-italic]) @@ -1013,8 +1013,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-make-font-bold-italic locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-make-font-bold-italic locale)) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-make-font-bold-italic locale)) )) '(([default] . [italic]) ([bold] . [bold-italic]) @@ -1038,8 +1038,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-make-font-unbold locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-make-font-unbold locale)) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-make-font-unbold locale)) )) '(([default] . t) ([bold] . [default]) @@ -1063,8 +1063,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-make-font-unitalic locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-make-font-unitalic locale)) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-make-font-unitalic locale)) )) '(([default] . t) ([bold] . t) @@ -1084,8 +1084,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-find-smaller-font locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-find-smaller-font locale)))) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-find-smaller-font locale)))) (defun make-face-larger (face &optional locale) "Make the font of the given face be larger, if possible. @@ -1094,8 +1094,8 @@ ;; handle X specific entries (cond ((featurep 'x) (frob-face-property face 'font 'x-find-larger-font locale)) - ((featurep 'w32) - (frob-face-property face 'font 'w32-find-larger-font locale)))) + ((featurep 'mswindows) + (frob-face-property face 'font 'mswindows-find-larger-font locale)))) (defun invert-face (face &optional locale) "Swap the foreground and background colors of the face." @@ -1346,8 +1346,8 @@ ;; Then do any device-specific initialization. (cond ((eq 'x (device-type device)) (x-init-device-faces device)) - ((eq 'w32 (device-type device)) - (w32-init-device-faces device)) + ((eq 'mswindows (device-type device)) + (mswindows-init-device-faces device)) ;; Nothing to do for TTYs? ) (init-other-random-faces device))) @@ -1360,8 +1360,8 @@ ;; Then do any frame-specific initialization. (cond ((eq 'x (frame-type frame)) (x-init-frame-faces frame)) - ((eq 'w32 (frame-type frame)) - (w32-init-frame-faces frame)) + ((eq 'mswindows (frame-type frame)) + (mswindows-init-frame-faces frame)) ;; Is there anything which should be done for TTY's? ))) @@ -1550,12 +1550,11 @@ (face-background 'list-mode-item-selected 'global)) (set-face-background 'list-mode-item-selected "gray68" 'global 'color) (set-face-background 'list-mode-item-selected "gray68" 'global 'grayscale) - (if (featurep 'x) - (unless (face-foreground 'list-mode-item-selected 'global) - (set-face-background 'list-mode-item-selected - [default foreground] 'global '(mono x)) - (set-face-foreground 'list-mode-item-selected - [default background] 'global '(mono x))))) + (unless (face-foreground 'list-mode-item-selected 'global) + (set-face-background 'list-mode-item-selected + [default foreground] 'global '(mono x)) + (set-face-foreground 'list-mode-item-selected + [default background] 'global '(mono x)))) ;; if the list-mode-item-selected face isn't distinguished on this device, ;; at least try inverting it. @@ -1614,7 +1613,6 @@ PIXMAP should be a string, the name of a file of pixmap data. The directories listed in the `x-bitmap-file-path' variable are searched. -Any kind of image file for which XEmacs has builtin support can be used. Alternatively, PIXMAP may be a list of the form (WIDTH HEIGHT DATA) where WIDTH and HEIGHT are the size in pixels, and DATA is @@ -1625,6 +1623,7 @@ in that frame; otherwise change each frame." (while (not (find-face face)) (setq face (signal 'wrong-type-argument (list 'facep face)))) + (locate-file pixmap x-bitmap-file-path ".xbm:" 4) (while (cond ((stringp pixmap) (unless (file-readable-p pixmap) (setq pixmap `[xbm :file ,pixmap]))