Mercurial > hg > xemacs-beta
diff lisp/msw-glyphs.el @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 2f8bb876ab1d |
children |
line wrap: on
line diff
--- a/lisp/msw-glyphs.el Mon Aug 13 11:19:22 2007 +0200 +++ b/lisp/msw-glyphs.el Mon Aug 13 11:20:41 2007 +0200 @@ -27,27 +27,16 @@ ;;; Commentary: -;; Initialization code for MS Windows glyphs. +;; This file contains temporary definitions for 'mswindows glyphs. +;; Since there currently is no image support, the glyps are defined +;; TTY-style. This file has to be removed or reworked completely +;; when we have images. -;; This file is dumped with XEmacs (when MS Windows support is -;; compiled in). Make sure this is the first of msw-*.el files -;; dumped. +;; This file is dumped with XEmacs. ;;; Code: -(defun msgdi-device-p (&optional device) - "Return non-nil if DEVICE is a GDI device, that is 'mswindows or 'msprinter. -MS GDI devices are mutuially WYSIWIG-compatible, so that many common glyph, -color and font properties apply to them equally. - -This function is also a predicate for 'msgdi device tag, matching this -device class." - (memq (device-type device) '(mswindows msprinter))) - (progn - - (define-specifier-tag 'msgdi (function msgdi-device-p)) - (set-console-type-image-conversion-list 'mswindows `(("\\.bmp\\'" [bmp :file nil] 2) @@ -72,14 +61,11 @@ ;; strings are not allowed so they will be ignored. ("" [nothing]))) - (set-console-type-image-conversion-list - 'msprinter (console-type-image-conversion-list 'mswindows)) - (set-face-font 'border-glyph "WingDings:Regular:11::Symbol" - 'global 'msgdi) - (set-glyph-image continuation-glyph "\xC3" 'global 'msgdi) - (set-glyph-image truncation-glyph "\xF0" 'global 'msgdi) - (set-glyph-image hscroll-glyph "\xEF" 'global 'msgdi) + 'global 'mswindows) + (set-glyph-image continuation-glyph "\xC3" 'global 'mswindows) + (set-glyph-image truncation-glyph "\xF0" 'global 'mswindows) + (set-glyph-image hscroll-glyph "\xEF" 'global 'mswindows) (set-glyph-image octal-escape-glyph "\\") (set-glyph-image control-arrow-glyph "^") @@ -94,11 +80,11 @@ (if emacs-beta-version "xemacs-beta.xpm" "xemacs.xpm")) - 'global 'msgdi)) + 'global 'mswindows)) (t (set-glyph-image xemacs-logo "XEmacs <insert spiffy graphic logo here>" - 'global 'msgdi))) + 'global 'mswindows))) ) ;;; msw-glyphs.el ends here