diff options
| author | Kenichi Handa | 2002-03-01 02:29:38 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-03-01 02:29:38 +0000 |
| commit | 4f8b265894916ad4c2a5bd6422f2bb0ffe08fb76 (patch) | |
| tree | 233ee7f64cafb8c78010c978f9fc88be1d56fa59 | |
| parent | f5027deb921e5b792fe5a9dbe35c97cf75a1e067 (diff) | |
| download | emacs-4f8b265894916ad4c2a5bd6422f2bb0ffe08fb76.tar.gz emacs-4f8b265894916ad4c2a5bd6422f2bb0ffe08fb76.zip | |
Deleted unnecessary calls of set-fontset-font.
(ccl-encode-mac-roman-font): Deleted.
| -rw-r--r-- | lisp/term/mac-win.el | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el index 48c210d51e2..862e6d89820 100644 --- a/lisp/term/mac-win.el +++ b/lisp/term/mac-win.el | |||
| @@ -178,38 +178,15 @@ Switch to a buffer editing the last file dropped." | |||
| 178 | (defconst kTextEncodingISOLatin2 514 "0x202") | 178 | (defconst kTextEncodingISOLatin2 514 "0x202") |
| 179 | 179 | ||
| 180 | 180 | ||
| 181 | (define-ccl-program ccl-encode-mac-roman-font | ||
| 182 | `(0 | ||
| 183 | (if (r0 != ,(charset-id 'ascii)) | ||
| 184 | (if (r0 == ,(charset-id 'latin-iso8859-1)) | ||
| 185 | (translate-character mac-roman-encoder r0 r1) | ||
| 186 | ((r1 <<= 7) | ||
| 187 | (r1 |= r2) | ||
| 188 | (translate-character mac-roman-encoder r0 r1))))) | ||
| 189 | "CCL program for Mac Roman font") | ||
| 190 | |||
| 191 | (setq font-ccl-encoder-alist | ||
| 192 | (cons '("mac-roman" . ccl-encode-mac-roman-font) | ||
| 193 | font-ccl-encoder-alist)) | ||
| 194 | |||
| 195 | ;; Create a fontset that uses mac-roman font. With this fontset, | 181 | ;; Create a fontset that uses mac-roman font. With this fontset, |
| 196 | ;; characters decoded from mac-roman encoding (ascii, latin-iso8859-1, | 182 | ;; characters decoded from mac-roman encoding (ascii, latin-iso8859-1, |
| 197 | ;; and mule-unicode-xxxx-yyyy) are displayed by a mac-roman font. | 183 | ;; and mule-unicode-xxxx-yyyy) are displayed by a mac-roman font. |
| 198 | 184 | ||
| 199 | (if (fboundp 'new-fontset) | 185 | (if (fboundp 'new-fontset) |
| 200 | (progn | 186 | (create-fontset-from-fontset-spec |
| 201 | (create-fontset-from-fontset-spec | 187 | "-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac, |
| 202 | "-etl-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-mac, | 188 | ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman |
| 203 | ascii:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman") | 189 | mac-roman:-*-Monaco-*-*-*-*-12-*-*-*-*-*-mac-roman")) |
| 204 | (let ((monaco-font '("monaco" . "mac-roman"))) | ||
| 205 | (map-char-table | ||
| 206 | (function | ||
| 207 | (lambda (key val) | ||
| 208 | (or (generic-char-p key) | ||
| 209 | (memq (char-charset key) | ||
| 210 | '(ascii eight-bit-control eight-bit-graphic)) | ||
| 211 | (set-fontset-font "fontset-mac" key monaco-font)))) | ||
| 212 | (get 'mac-roman-encoder 'translation-table))))) | ||
| 213 | 190 | ||
| 214 | ;; To display filenames in Chinese or Japanese, replace mac-roman with | 191 | ;; To display filenames in Chinese or Japanese, replace mac-roman with |
| 215 | ;; big5 or sjis | 192 | ;; big5 or sjis |