70
|
1 ;;; mule-diag.el --- debugging functions for Mule.
|
|
2
|
|
3 ;; Copyright (C) 1992 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Sun Microsystems.
|
|
5
|
|
6 ;; This file is part of XEmacs.
|
|
7
|
|
8 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
9 ;; under the terms of the GNU General Public License as published by
|
|
10 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
11 ;; any later version.
|
|
12
|
|
13 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
14 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16 ;; General Public License for more details.
|
|
17
|
|
18 ;; You should have received a copy of the GNU General Public License
|
|
19 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
20 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
21 ;; Boston, MA 02111-1307, USA.
|
|
22
|
|
23 ;;; 93.7.28 created for Mule Ver.0.9.8 by K.Handa <handa@etl.go.jp>
|
|
24
|
|
25 ;;; General utility function
|
|
26
|
|
27 (defun mule-debug-princ-list (&rest args)
|
|
28 (while (cdr args)
|
|
29 (if (car args)
|
|
30 (progn (princ (car args)) (princ " ")))
|
|
31 (setq args (cdr args)))
|
|
32 (princ (car args))
|
|
33 (princ "\n"))
|
|
34
|
|
35 ;;; character sets
|
|
36
|
|
37 ;;;###autoload
|
|
38 (defun list-charsets ()
|
|
39 "Display a list of existing character sets."
|
|
40 (interactive)
|
|
41 (with-output-to-temp-buffer "*Charset List*"
|
|
42 (princ "## LIST OF CHARACTER SETS\n")
|
|
43 (princ
|
|
44 "NAME REGISTRY BYTES CHARS FINAL GRAPHIC DIR\n")
|
|
45 (princ
|
|
46 "--------------------------------------------------------------------")
|
102
|
47 (dolist (charset (charset-list))
|
|
48 (setq charset (get-charset charset))
|
|
49 (princ (format
|
|
50 "%20s %15s %5d %5d %5d %7d %s\n"
|
|
51 (charset-name charset)
|
|
52 (charset-registry charset)
|
|
53 (charset-dimension charset)
|
|
54 (charset-chars charset)
|
|
55 (charset-final charset)
|
|
56 (charset-graphic charset)
|
|
57 (charset-direction charset)))
|
|
58 (princ " ")
|
|
59 (princ "%s\n" (charset-doc-string charset)))))
|
70
|
60
|
102
|
61 ; (princ "## CCL PROGRAM TO CONVERT INTERNAL TO EXTERNAL CODE\n")
|
|
62 ; (princ "NAME CCL-PROGRAMS\n")
|
|
63 ; (mapcar
|
|
64 ; (lambda (name)
|
|
65 ; (let ((ccl (charset-ccl-program name)))
|
|
66 ; (if ccl
|
|
67 ; (let ((i 0) (len (length ccl)))
|
|
68 ; (princ (format "%20s " name))
|
|
69 ; (while (< i len)
|
|
70 ; (princ (format " %x" (aref ccl i)))
|
|
71 ; (setq i (1+ i)))
|
|
72 ; (princ "\n")))))
|
|
73 ; (charset-list))
|
|
74 ; ))
|
70
|
75
|
102
|
76 (defun describe-designation (cs register)
|
|
77 (let ((charset
|
|
78 (coding-system-property
|
|
79 cs (intern (format "charset-g%d" register))))
|
|
80 (force
|
|
81 (coding-system-property
|
|
82 cs (intern (format "force-g%d-on-output" register)))))
|
|
83 (princ
|
|
84 (format
|
|
85 " G%d: %s%s\n"
|
|
86 register
|
|
87 (cond ((null charset) "never used")
|
|
88 ((eq t charset) "none")
|
|
89 (t (charset-name charset)))
|
|
90 (if force " (explicit designation required)" "")))))
|
|
91
|
70
|
92 ;;;###autoload
|
|
93 (defun describe-coding-system (cs)
|
|
94 "Display documentation of the coding-system CS."
|
|
95 (interactive "zCoding-system: ")
|
102
|
96 (setq cs (get-coding-system cs))
|
70
|
97 (with-output-to-temp-buffer "*Help*"
|
102
|
98 (princ (format "Coding-system %s [%s]:\n"
|
|
99 (coding-system-name cs)
|
|
100 (coding-system-mnemonic cs)))
|
|
101 (princ (format " %s\n" (coding-system-doc-string cs)))
|
|
102 (let ((type (coding-system-type cs)))
|
|
103 (princ "Type: ") (princ type) (terpri)
|
|
104 (case type
|
|
105 ('iso2022
|
|
106 (princ "\nInitial designations:\n")
|
|
107 (dolist (register '(0 1 2 3))
|
|
108 (describe-designation cs register))
|
|
109 (princ "\nOther properties: \n")
|
|
110 (dolist (prop '(short no-ascii-eol no-ascii-cntl seven lock-shift no-iso6429))
|
|
111 (princ (format " %s: " (symbol-name prop)))
|
|
112 (princ (coding-system-property cs prop))
|
|
113 (terpri)))
|
|
114 ;;(princ " short: ") (princ (coding-system-short))
|
|
115 ;;(princ (if (aref flags 4) "ShortForm" "LongForm"))
|
|
116 ;;(if (aref flags 5) (princ ", ASCII@EOL"))
|
|
117 ;;(if (aref flags 6) (princ ", ASCII@CNTL"))
|
|
118 ;;(princ (if (coding-system-seven cs) ", 7bit" ", 8bit"))
|
|
119 ;;(if (aref flags 8) (princ ", UseLockingShift"))
|
|
120 ;;(if (aref flags 9) (princ ", UseRoman"))
|
|
121 ;;(if (aref flags 10) (princ ", UseOldJIS"))
|
|
122 ;;(if (aref flags 11) (princ ", No ISO6429"))
|
|
123 ;;(terpri))
|
|
124
|
|
125 ('big5
|
|
126 ;;(princ (if flags "Big-ETen\n" "Big-HKU\n")))
|
|
127 ))
|
|
128 (princ (format "\nEOL-Type: %s\n"
|
|
129 (case (coding-system-eol-type cs)
|
|
130 ('nil "null (= LF)")
|
|
131 ('lf "LF")
|
|
132 ('crlf "CRLF")
|
|
133 ('cr "CR")
|
|
134 (t "invalid"))))
|
70
|
135 )))
|
|
136
|
|
137 ;;;###autoload
|
|
138 (defun list-coding-system-briefly ()
|
|
139 "Display coding-systems currently used with a brief format in mini-buffer."
|
|
140 (interactive)
|
|
141 (let ((cs (and (fboundp 'process-coding-system) (process-coding-system)))
|
|
142 eol-type)
|
|
143 (message
|
|
144 "current: [FKDPp=%c%c%c%c%c%c%c%c] default: [FPp=%c%c%c%c%c%c]"
|
110
|
145 (coding-system-mnemonic buffer-file-coding-system)
|
|
146 (coding-system-eol-mnemonic buffer-file-coding-system)
|
70
|
147 (coding-system-mnemonic keyboard-coding-system)
|
|
148 (coding-system-mnemonic terminal-coding-system)
|
|
149 (coding-system-mnemonic (car cs))
|
|
150 (coding-system-eol-mnemonic (car cs))
|
|
151 (coding-system-mnemonic (cdr cs))
|
|
152 (coding-system-eol-mnemonic (cdr cs))
|
110
|
153 (coding-system-mnemonic (default-value 'buffer-file-coding-system))
|
|
154 (coding-system-eol-mnemonic (default-value 'buffer-file-coding-system))
|
70
|
155 (coding-system-mnemonic (car default-process-coding-system))
|
|
156 (coding-system-eol-mnemonic (car default-process-coding-system))
|
|
157 (coding-system-mnemonic (cdr default-process-coding-system))
|
|
158 (coding-system-eol-mnemonic (cdr default-process-coding-system))
|
|
159 )))
|
|
160
|
|
161 (defun princ-coding-system (code)
|
|
162 (princ ": ")
|
|
163 (princ code)
|
|
164 (princ " [")
|
|
165 (princ (char-to-string (coding-system-mnemonic code)))
|
|
166 (princ (char-to-string (coding-system-eol-mnemonic code)))
|
|
167 (princ "]\n"))
|
|
168
|
|
169 (defun todigit (flags idx &optional default-value)
|
|
170 (if (aref flags idx)
|
|
171 (if (numberp (aref flags idx)) (aref flags idx) 1)
|
|
172 (or default-value 0)))
|
|
173
|
|
174 (defun print-coding-system-description (code)
|
|
175 (let ((type (get-code-type code))
|
|
176 (eol (or (get-code-eol code) 1))
|
|
177 (flags (get-code-flags code))
|
|
178 line)
|
|
179 (setq type
|
|
180 (cond ((null type) 0)
|
|
181 ((eq type t) 2)
|
|
182 ((eq type 0) 1)
|
|
183 ((eq type 1) 3)
|
|
184 ((eq type 2) 4)
|
|
185 ((eq type 3) 5)
|
|
186 ((eq type 4) 6)
|
|
187 (t nil)))
|
|
188 (if (or (null type)
|
|
189 (get code 'post-read-conversion)
|
|
190 (get (get-base-code code) 'post-read-conversion)
|
|
191 (get code 'pre-write-conversion)
|
|
192 (get (get-base-code code) 'pre-write-conversion)
|
|
193 (eq code '*noconv*))
|
|
194 nil
|
|
195 (princ
|
|
196 (format "%s:%d:%c:"
|
|
197 code type (coding-system-mnemonic code)))
|
|
198 (princ (format "%d" (if (numberp eol) eol 0)))
|
|
199 (cond ((= type 4)
|
|
200 (princ
|
|
201 (format
|
|
202 ":%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d"
|
|
203 (todigit flags 0 -1)
|
|
204 (todigit flags 1 -1)
|
|
205 (todigit flags 2 -1)
|
|
206 (todigit flags 3 -1)
|
|
207 (todigit flags 4)
|
|
208 (todigit flags 5)
|
|
209 (todigit flags 6)
|
|
210 (todigit flags 7)
|
|
211 (todigit flags 8)
|
|
212 (todigit flags 9)
|
|
213 (todigit flags 10)
|
|
214 (todigit flags 11))))
|
|
215 ((= type 5)
|
|
216 (princ ":0"))
|
|
217 ((= type 6)
|
|
218 (if (and (vectorp (car flags)) (vectorp (cdr flags)))
|
|
219 (let (i len)
|
|
220 (princ ":")
|
|
221 (setq i 0 len (length (car flags)))
|
|
222 (while (< i len)
|
|
223 (princ (format " %x" (aref (car flags) i)))
|
|
224 (setq i (1+ i)))
|
|
225 (princ ",")
|
|
226 (setq i 0 len (length (cdr flags)))
|
|
227 (while (< i len)
|
|
228 (princ (format " %x" (aref (cdr flags) i)))
|
|
229 (setq i (1+ i))))))
|
|
230 (t (princ ":0")))
|
|
231 (princ ":")
|
|
232 (princ (get-code-document code))
|
|
233 (princ "\n"))
|
|
234 ))
|
|
235
|
|
236 ;;;###autoload
|
|
237 (defun list-coding-system (&optional all)
|
|
238 "Describe coding-systems currently used with a detailed format.
|
|
239 If optional arg ALL is non-nil, all coding-systems are listed in
|
|
240 machine readable simple format."
|
|
241 (interactive "P")
|
|
242 (with-output-to-temp-buffer "*Help*"
|
|
243 (if (null all)
|
|
244 (let ((cs (and (fboundp 'process-coding-system)
|
|
245 (process-coding-system))))
|
110
|
246 (princ "Current:\n buffer-file-coding-system")
|
|
247 (princ-coding-system buffer-file-coding-system)
|
70
|
248 (princ " keyboard-coding-system")
|
|
249 (princ-coding-system keyboard-coding-system)
|
|
250 (princ " terminal-coding-system")
|
|
251 (princ-coding-system terminal-coding-system)
|
|
252 (when cs
|
|
253 (princ " process-coding-system (input)")
|
|
254 (princ-coding-system (car cs))
|
|
255 (princ " process-coding-system (output)")
|
|
256 (princ-coding-system (cdr cs)))
|
110
|
257 (princ "Default:\n buffer-file-coding-system")
|
|
258 (princ-coding-system (default-value 'buffer-file-coding-system))
|
70
|
259 (princ " process-coding-system (input)")
|
|
260 (princ-coding-system (car default-process-coding-system))
|
|
261 (princ " process-coding-system (output)")
|
|
262 (princ-coding-system (cdr default-process-coding-system))
|
110
|
263 (princ "Others:\n buffer-file-coding-system-for-read")
|
|
264 (princ-coding-system buffer-file-coding-system-for-read)
|
70
|
265 (princ "Coding categories by priority:\n")
|
|
266 (princ (coding-priority-list)))
|
|
267 (princ "########################\n")
|
|
268 (princ "## LIST OF CODING SYSTEM\n")
|
|
269 (princ "## NAME(str):TYPE(int):MNEMONIC(char):EOL(int):FLAGS:DOC(str)\n")
|
|
270 (princ "## TYPE = 0(no conversion),1(auto conversion),\n")
|
|
271 (princ "## 2(Mule internal),3(SJIS),4(ISO2022),5(BIG5),6(CCL)\n")
|
|
272 (princ "## EOL = 0(AUTO), 1(LF), 2(CRLF), 3(CR)\n")
|
|
273 (princ "## FLAGS =\n")
|
|
274 (princ "## if TYPE = 4 then\n")
|
|
275 (princ "## G0,G1,G2,G3,SHORT,ASCII-EOL,ASCII-CNTL,SEVEN,\n")
|
|
276 (princ "## LOCK-SHIFT,USE-ROMAN,USE-OLDJIS\n")
|
|
277 (princ "## else if TYPE = 6 then\n")
|
|
278 (princ "## CCL_PROGRAM_FOR_READ,CCL_PROGRAM_FOR_WRITE\n")
|
|
279 (princ "## else\n")
|
|
280 (princ "## 0\n")
|
|
281 (princ "##\n")
|
|
282 (let ((codings nil))
|
|
283 (mapatoms
|
|
284 (function
|
|
285 (lambda (arg)
|
|
286 (if (eq arg '*noconv*)
|
|
287 nil
|
|
288 (if (and (or (vectorp (get arg 'coding-system))
|
|
289 (vectorp (get arg 'eol-type)))
|
|
290 (null (get arg 'pre-write-conversion))
|
|
291 (null (get arg 'post-read-conversion)))
|
|
292 (setq codings (cons arg codings)))))))
|
|
293 (while codings
|
|
294 (print-coding-system-description (car codings))
|
|
295 (setq codings (cdr codings))))
|
|
296 (princ "############################\n")
|
|
297 (princ "## LIST OF CODING CATEGORIES (ordered by priority)\n")
|
|
298 (princ "## CATEGORY(str):CODING-SYSTEM(str)\n")
|
|
299 (princ "##\n")
|
|
300 (princ (coding-priority-list))
|
|
301 )))
|
|
302
|
|
303 ;;; FONT
|
|
304 (defun describe-font-internal (fontinfo &optional verbose)
|
|
305 (let ((cs (character-set (aref fontinfo 3))))
|
|
306 (mule-debug-princ-list (format "Font #%02d for" (aref fontinfo 0))
|
|
307 (nth 6 cs) (nth 7 cs) "--"
|
|
308 (cond ((= (aref fontinfo 4) 0) "NOT YET OPENED")
|
|
309 ((= (aref fontinfo 4) 1) "OPENED")
|
|
310 (t "NOT FOUND")))
|
|
311 (mule-debug-princ-list " request:" (aref fontinfo 1))
|
|
312 (if (= (aref fontinfo 4) 1)
|
|
313 (mule-debug-princ-list " opened:" (aref fontinfo 2)))
|
|
314 (if (and verbose (= (aref fontinfo 4) 1))
|
|
315 (progn
|
|
316 (mule-debug-princ-list " size:" (format "%d" (aref fontinfo 5)))
|
|
317 (mule-debug-princ-list " encoding:" (if (= (aref fontinfo 6) 0) "low" "high"))
|
|
318 (mule-debug-princ-list " yoffset:" (format "%d" (aref fontinfo 7)))
|
|
319 (mule-debug-princ-list " rel-cmp:" (format "%d" (aref fontinfo 8)))))
|
|
320 ))
|
|
321
|
|
322 ;;;###autoload
|
|
323 (defun describe-font (fontname)
|
|
324 "Display information about fonts which partially match FONTNAME."
|
|
325 (interactive "sFontname: ")
|
|
326 (setq fontname (regexp-quote fontname))
|
|
327 (with-output-to-temp-buffer "*Help*"
|
|
328 (let ((fontlist (font-list)) fontinfo)
|
|
329 (while fontlist
|
|
330 (setq fontinfo (car fontlist))
|
|
331 (if (or (string-match fontname (aref fontinfo 1))
|
|
332 (and (aref fontinfo 2)
|
|
333 (string-match fontname (aref fontinfo 2))))
|
|
334 (describe-font-internal fontinfo 'verbose))
|
|
335 (setq fontlist (cdr fontlist))))))
|
|
336
|
|
337 ;;;###autoload
|
|
338 (defun list-font ()
|
|
339 "Display a list of fonts."
|
|
340 (interactive)
|
|
341 (with-output-to-temp-buffer "*Help*"
|
|
342 (let ((fontlist (font-list)))
|
|
343 (while fontlist
|
|
344 (describe-font-internal (car fontlist))
|
|
345 (setq fontlist (cdr fontlist))))))
|
|
346
|
|
347 ;;; FONTSET
|
|
348 (defun describe-fontset-internal (fontset-info)
|
|
349 (mule-debug-princ-list "### Fontset-name:" (car fontset-info) "###")
|
|
350 (let ((i 0) font)
|
|
351 (while (< i 128)
|
|
352 (if (>= (setq font (aref (cdr fontset-info) i)) 0)
|
|
353 (describe-font-internal (get-font-info font)))
|
|
354 (setq i (1+ i)))))
|
|
355
|
|
356 ;;;###autoload
|
|
357 (defun describe-fontset (fontset)
|
|
358 "Display information about FONTSET."
|
|
359 (interactive
|
|
360 (let ((fontset-list (mapcar '(lambda (x) (list x)) (fontset-list))))
|
|
361 (list (completing-read "Fontset: " fontset-list nil 'match))))
|
|
362 (let ((fontset-info (get-fontset-info fontset)))
|
|
363 (if fontset-info
|
|
364 (with-output-to-temp-buffer "*Help*"
|
|
365 (describe-fontset-internal fontset-info))
|
|
366 (error "No such fontset: %s" fontset))))
|
|
367
|
|
368 ;;;###autoload
|
|
369 (defun list-fontset ()
|
|
370 "Display a list of fontsets."
|
|
371 (interactive)
|
|
372 (with-output-to-temp-buffer "*Help*"
|
|
373 (let ((fontsetlist (fontset-list 'all)))
|
|
374 (while fontsetlist
|
|
375 (describe-fontset-internal (car fontsetlist))
|
|
376 (setq fontsetlist (cdr fontsetlist))))))
|
|
377
|
|
378 ;;; DIAGNOSIS
|
|
379
|
|
380 (defun insert-list (args)
|
|
381 (while (cdr args)
|
|
382 (insert (or (car args) "nil") " ")
|
|
383 (setq args (cdr args)))
|
|
384 (if args (insert (or (car args) "nil")))
|
|
385 (insert "\n"))
|
|
386
|
|
387 (defun insert-section (sec title)
|
|
388 (insert "########################################\n"
|
|
389 "# Section " (format "%d" sec) ". " title "\n"
|
|
390 "########################################\n\n"))
|
|
391
|
|
392 ;;;###autoload
|
|
393 (defun mule-diag ()
|
|
394 "Show diagnosis of the current running Mule."
|
|
395 (interactive)
|
|
396 (let ((buf (get-buffer-create "*Diagnosis*")))
|
|
397 (save-excursion
|
|
398 (set-buffer buf)
|
|
399 (erase-buffer)
|
|
400 (insert "\t##############################\n"
|
|
401 "\t### DIAGNOSIS OF YOUR MULE ###\n"
|
|
402 "\t##############################\n\n"
|
|
403 "CONTENTS: Section 0. General information\n"
|
|
404 " Section 1. Display\n"
|
|
405 " Section 2. Input methods\n"
|
|
406 " Section 3. Coding-systems\n"
|
|
407 " Section 4. Character sets\n")
|
|
408 (if window-system
|
|
409 (insert " Section 5. Fontset list\n"))
|
|
410 (insert "\n")
|
|
411
|
|
412 (insert-section 0 "General information")
|
|
413 (insert "Mule's version: " mule-version " of " mule-version-date "\n")
|
|
414 (if window-system
|
|
415 (insert "Window-system: "
|
|
416 (symbol-name window-system)
|
|
417 (format "%s" window-system-version))
|
|
418 (insert "Terminal: " (getenv "TERM")))
|
|
419 (insert "\n\n")
|
|
420
|
|
421 (insert-section 1 "Display")
|
|
422 (if (eq window-system 'x)
|
|
423 (let* ((alist (nth 1 (assq (selected-frame)
|
|
424 (current-frame-configuration))))
|
|
425 (fontset (cdr (assq 'font alist))))
|
|
426 (insert-list (cons "Defined fontsets:" (fontset-list)))
|
|
427 (insert "Current frame's fontset: " fontset "\n"
|
|
428 "See Section 5 for more detail.\n\n"))
|
|
429 (insert "Coding system for output to terminal: "
|
|
430 (symbol-name terminal-coding-system)
|
|
431 "\n\n"))
|
|
432 (insert-section 2 "Input methods")
|
|
433 (if (featurep 'egg)
|
|
434 (let (temp)
|
|
435 (insert "EGG (Version " egg-version ")\n")
|
|
436 (insert " jserver host list: ")
|
|
437 (insert-list (if (boundp 'jserver-list) jserver-list
|
|
438 (if (setq temp (getenv "JSERVER"))
|
|
439 (list temp))))
|
|
440 (insert " cserver host list: ")
|
|
441 (insert-list (if (boundp 'cserver-list) cserver-list
|
|
442 (if (setq temp (getenv "CSERVER"))
|
|
443 (list temp))))
|
|
444 (insert " loaded ITS mode:\n\t")
|
|
445 (insert-list (mapcar 'car its:*mode-alist*))
|
|
446 (insert " current server:" (symbol-name wnn-server-type) "\n"
|
|
447 " current ITS mode:"
|
|
448 (let ((mode its:*mode-alist*))
|
|
449 (while (not (eq (cdr (car mode)) its:*current-map*))
|
|
450 (setq mode (cdr mode)))
|
|
451 (car (car mode))))
|
|
452 (insert "\n")))
|
|
453 (insert "QUAIL (Version " quail-version ")\n")
|
|
454 (insert " Quail packages: (not-yet-loaded) [current]\n\t")
|
|
455 (let ((l quail-package-alist)
|
|
456 (current (or (car quail-current-package) "")))
|
|
457 (while l
|
|
458 (cond ((string= current (car (car l)))
|
|
459 (insert "[" (car (car l)) "]"))
|
|
460 ((nth 2 (car l))
|
|
461 (insert (car (car l))))
|
|
462 (t
|
|
463 (insert "(" (car (car l)) ")")))
|
|
464 (if (setq l (cdr l)) (insert " ") (insert "\n"))))
|
|
465 (if (featurep 'canna)
|
|
466 (insert "CANNA (Version " canna-rcs-version ")\n"
|
|
467 " server:" (or canna-server "Not specified") "\n"))
|
|
468 (if (featurep 'sj3-egg)
|
|
469 (insert "SJ3 (Version" sj3-egg-version ")\n"
|
|
470 " server:" (get-sj3-host-name) "\n"))
|
|
471 (insert "\n")
|
|
472
|
|
473 (insert-section 3 "Coding systems")
|
|
474 (save-excursion (list-coding-systems))
|
|
475 (insert-buffer "*Help*")
|
|
476 (goto-char (point-max))
|
|
477 (insert "\n")
|
|
478
|
|
479 (insert-section 4 "Character sets")
|
|
480 (save-excursion (list-charsets))
|
|
481 (insert-buffer "*Help*")
|
|
482 (goto-char (point-max))
|
|
483 (insert "\n")
|
|
484
|
|
485 (if window-system
|
|
486 (progn
|
|
487 (insert-section 5 "Fontset list")
|
|
488 (save-excursion (list-fontset))
|
|
489 (insert-buffer "*Help*")))
|
|
490
|
|
491 (set-buffer-modified-p nil)
|
|
492 )
|
|
493 (let ((win (display-buffer buf)))
|
|
494 (set-window-point win 1)
|
|
495 (set-window-start win 1))
|
|
496 ))
|
|
497
|
|
498 ;;; DUMP DATA FILE
|
|
499
|
|
500 ;;;###autoload
|
|
501 (defun dump-charsets ()
|
|
502 (list-charsets)
|
|
503 (set-buffer (get-buffer "*Help*"))
|
|
504 (let (make-backup-files)
|
|
505 (write-region (point-min) (point-max) "charsets.lst"))
|
|
506 (kill-emacs))
|
|
507
|
|
508 ;;;###autoload
|
|
509 (defun dump-coding-systems ()
|
|
510 (list-coding-systems 'all)
|
|
511 (set-buffer (get-buffer "*Help*"))
|
|
512 (let (make-backup-files)
|
|
513 (write-region (point-min) (point-max) "coding-systems.lst"))
|
|
514 (kill-emacs))
|
|
515
|