diff options
| -rw-r--r-- | lisp/international/mule-diag.el | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 9aed8213e39..60140302cb1 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -233,18 +233,6 @@ detailed meanings of these arguments." | |||
| 233 | (if (> (length charset) 0) | 233 | (if (> (length charset) 0) |
| 234 | (intern charset)))) | 234 | (intern charset)))) |
| 235 | 235 | ||
| 236 | ;; Vector of 16 space-only strings. Nth string has display property | ||
| 237 | ;; '(space :align-to COL) when COL is the column number to align the | ||
| 238 | ;; Nth character in a row. Used by `list-block-of-chars'. | ||
| 239 | |||
| 240 | (defconst stretches-for-character-list | ||
| 241 | (let ((stretches (make-vector 16 nil))) | ||
| 242 | (dotimes (i 16) | ||
| 243 | (aset stretches i | ||
| 244 | (propertize " " 'display `(space :align-to ,(+ 6 (* i 4)))))) | ||
| 245 | stretches) | ||
| 246 | "For internal use only.") | ||
| 247 | |||
| 248 | ;; List characters of the range MIN and MAX of CHARSET. If dimension | 236 | ;; List characters of the range MIN and MAX of CHARSET. If dimension |
| 249 | ;; of CHARSET is two (i.e. 2-byte charset), ROW is the first byte | 237 | ;; of CHARSET is two (i.e. 2-byte charset), ROW is the first byte |
| 250 | ;; (block index) of the characters, and MIN and MAX are the second | 238 | ;; (block index) of the characters, and MIN and MAX are the second |
| @@ -252,8 +240,8 @@ detailed meanings of these arguments." | |||
| 252 | 240 | ||
| 253 | (defun list-block-of-chars (charset row min max) | 241 | (defun list-block-of-chars (charset row min max) |
| 254 | (let (i ch) | 242 | (let (i ch) |
| 255 | (insert-char ?- (+ 5 (* 4 16))) | 243 | (insert-char ?- (+ 7 (* 4 16))) |
| 256 | (insert "\n ") | 244 | (insert "\n ") |
| 257 | (setq i 0) | 245 | (setq i 0) |
| 258 | (while (< i 16) | 246 | (while (< i 16) |
| 259 | (insert (format "%4X" i)) | 247 | (insert (format "%4X" i)) |
| @@ -261,7 +249,7 @@ detailed meanings of these arguments." | |||
| 261 | (setq i (* (/ min 16) 16)) | 249 | (setq i (* (/ min 16) 16)) |
| 262 | (while (<= i max) | 250 | (while (<= i max) |
| 263 | (if (= (% i 16) 0) | 251 | (if (= (% i 16) 0) |
| 264 | (insert (format "\n%4Xx" (/ (+ (* row 256) i) 16)))) | 252 | (insert (format "\n%6Xx" (/ (+ (* row 256) i) 16)))) |
| 265 | (setq ch (if (< i min) | 253 | (setq ch (if (< i min) |
| 266 | 32 | 254 | 32 |
| 267 | (or (decode-char charset (+ (* row 256) i)) | 255 | (or (decode-char charset (+ (* row 256) i)) |
| @@ -271,7 +259,7 @@ detailed meanings of these arguments." | |||
| 271 | (setq ch (single-key-description ch)) | 259 | (setq ch (single-key-description ch)) |
| 272 | (if (and (>= ch 128) (< ch 160)) | 260 | (if (and (>= ch 128) (< ch 160)) |
| 273 | (setq ch (format "%02Xh" ch)))) | 261 | (setq ch (format "%02Xh" ch)))) |
| 274 | (insert (aref stretches-for-character-list (% i 16)) ch) | 262 | (insert "\t" ch) |
| 275 | (setq i (1+ i)))) | 263 | (setq i (1+ i)))) |
| 276 | (insert "\n")) | 264 | (insert "\n")) |
| 277 | 265 | ||
| @@ -291,7 +279,7 @@ detailed meanings of these arguments." | |||
| 291 | (setcdr slot | 279 | (setcdr slot |
| 292 | (cons (format " (%s)" charset) | 280 | (cons (format " (%s)" charset) |
| 293 | (cdr slot))))) | 281 | (cdr slot))))) |
| 294 | (setq indent-tabs-mode nil) | 282 | (setq tab-width 4) |
| 295 | (set-buffer-multibyte t) | 283 | (set-buffer-multibyte t) |
| 296 | (unless (charsetp charset) | 284 | (unless (charsetp charset) |
| 297 | (error "Invalid character set %s" charset)) | 285 | (error "Invalid character set %s" charset)) |
| @@ -887,8 +875,8 @@ but still contains full information about each coding system." | |||
| 887 | (insert "\n -" family | 875 | (insert "\n -" family |
| 888 | ?- (or (aref requested 1) ?*) ; weight | 876 | ?- (or (aref requested 1) ?*) ; weight |
| 889 | ?- (or (aref requested 2) ?*) ; slant | 877 | ?- (or (aref requested 2) ?*) ; slant |
| 890 | "-*-" (or (aref requested 3) ?*) ; width | 878 | ?- (or (aref requested 3) ?*) ; width |
| 891 | "-*-" (or (aref requested 4) ?*) ; adstyle | 879 | ?- (or (aref requested 4) ?*) ; adstyle |
| 892 | "-*-*-*-*-*-*-" registry)))) | 880 | "-*-*-*-*-*-*-" registry)))) |
| 893 | 881 | ||
| 894 | ;; Insert opened font names (if any). | 882 | ;; Insert opened font names (if any). |