annotate lisp/msw-glyphs.el @ 386:4af0ddfb7c5b r21-2-8

Import from CVS: tag r21-2-8
author cvs
date Mon, 13 Aug 2007 11:08:50 +0200
parents 4b85ae5eabfb
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
1 ;;; msw-glyphs.el --- Support for glyphs in ms windows
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
2
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
3 ;; Copyright (C) 1994, 1997 Free Software Foundation, Inc.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
4
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
5 ;; Author: Kirill M. Katsnelson <kkm@kis.ru>
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
6 ;; Maintainer: XEmacs Development Team
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
7 ;; Keywords: extensions, internal, dumped
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
8
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
10
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
14 ;; any later version.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
15
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
19 ;; General Public License for more details.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
20
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
23 ;; Free Software Foundation, 59 Temple Place - Suite 330,
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
25
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
26 ;;; Synched up with: Not in FSF.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
27
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
28 ;;; Commentary:
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
29
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
30 ;; This file contains temporary definitions for 'mswindows glyphs.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
31 ;; Since there currently is no image support, the glyps are defined
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
32 ;; TTY-style. This file has to be removed or reworked completely
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
33 ;; when we have images.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
34
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
35 ;; This file is dumped with XEmacs.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
36
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
37 ;;; Code:
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
38
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
39 (progn
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
40 (set-console-type-image-conversion-list
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
41 'mswindows
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
42 `(("\\.bmp\\'" [bmp :file nil] 2)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
43 ("\\`BM" [bmp :data nil] 2)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
44 ,@(if (featurep 'xpm) '(("\\.xpm\\'" [xpm :file nil] 2)))
288
e11d67e05968 Import from CVS: tag r21-0b42
cvs
parents: 286
diff changeset
45 ("\\.xbm\\'" [xbm :file nil] 2)
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
46 ,@(if (featurep 'xpm) '(("\\`/\\* XPM \\*/" [xpm :data nil] 2)))
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
47 ,@(if (featurep 'gif) '(("\\.gif\\'" [gif :file nil] 2)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
48 ("\\`GIF8[79]" [gif :data nil] 2)))
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
49 ,@(if (featurep 'jpeg) '(("\\.jpe?g\\'" [jpeg :file nil] 2)))
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
50 ;; all of the JFIF-format JPEG's that I've seen begin with
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
51 ;; the following. I have no idea if this is standard.
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
52 ,@(if (featurep 'jpeg) '(("\\`\377\330\377\340\000\020JFIF"
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
53 [jpeg :data nil] 2)))
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
54 ,@(if (featurep 'png) '(("\\.png\\'" [png :file nil] 2)))
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
55 ,@(if (featurep 'png) '(("\\`\211PNG" [png :data nil] 2)))
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 272
diff changeset
56 ,@(if (featurep 'tiff) '(("\\.tif?f\\'" [tiff :file nil] 2)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
57 ("\\`X-Face:" [string :data "[xface]"])
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
58 ("\\`/\\* XPM \\*/" [string :data "[xpm]"])
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
59 ("" [string :data nil] 2)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
60 ;; this last one is here for pointers and icons and such --
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
61 ;; strings are not allowed so they will be ignored.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
62 ("" [nothing])))
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
63
294
4b85ae5eabfb Import from CVS: tag r21-0b45
cvs
parents: 288
diff changeset
64 (set-face-font 'border-glyph "WingDings:Regular:11::Symbol"
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
65 'global 'mswindows)
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
66 (set-glyph-image continuation-glyph "\xC3" 'global 'mswindows)
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
67 (set-glyph-image truncation-glyph "\xF0" 'global 'mswindows)
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 282
diff changeset
68 (set-glyph-image hscroll-glyph "\xEF" 'global 'mswindows)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
69
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
70 (set-glyph-image octal-escape-glyph "\\")
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
71 (set-glyph-image control-arrow-glyph "^")
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
72 (set-glyph-image invisible-text-glyph " ...")
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
73
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
74 (cond ((featurep 'xpm)
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
75 (set-glyph-image frame-icon-glyph
282
c42ec1d1cded Import from CVS: tag r21-0b39
cvs
parents: 278
diff changeset
76 (concat "../etc/" "xemacs-icon3.xpm")
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
77 'global 'mswindows)
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
78 (set-glyph-image xemacs-logo
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
79 (concat "../etc/"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
80 (if emacs-beta-version
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
81 "xemacs-beta.xpm"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
82 "xemacs.xpm"))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
83 'global 'mswindows))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
84 (t
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
85 (set-glyph-image xemacs-logo
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
86 "XEmacs <insert spiffy graphic logo here>"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
87 'global 'mswindows)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
88 )
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
89
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
90 ;;; msw-glyphs.el ends here