Mercurial > emacs
changeset 52948:5044018cd79c
* disp-table.el (standard-display-8bit)
(standard-display-default, standard-display-ascii)
(standard-display-g1, standard-display-graphic)
(standard-display-underline): Assure that standard-display-table
is a display table.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 28 Oct 2003 06:52:20 +0000 |
parents | 3c1778936dff |
children | 24f0bfec962b |
files | lisp/disp-table.el |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/disp-table.el Mon Oct 27 15:54:13 2003 +0000 +++ b/lisp/disp-table.el Tue Oct 28 06:52:20 2003 +0000 @@ -113,6 +113,8 @@ ;;;###autoload (defun standard-display-8bit (l h) "Display characters in the range L to H literally." + (or standard-display-table + (setq standard-display-table (make-display-table))) (while (<= l h) (if (and (>= l ?\ ) (< l 127)) (aset standard-display-table l nil) @@ -122,6 +124,8 @@ ;;;###autoload (defun standard-display-default (l h) "Display characters in the range L to H using the default notation." + (or standard-display-table + (setq standard-display-table (make-display-table))) (while (<= l h) (if (and (>= l ?\ ) (char-valid-p l)) (aset standard-display-table l nil)) @@ -133,6 +137,8 @@ ;;;###autoload (defun standard-display-ascii (c s) "Display character C using printable string S." + (or standard-display-table + (setq standard-display-table (make-display-table))) (aset standard-display-table c (vconcat s))) ;;;###autoload @@ -142,6 +148,8 @@ it is meaningless for an X frame." (if (memq window-system '(x w32)) (error "Cannot use string glyphs in a windowing system")) + (or standard-display-table + (setq standard-display-table (make-display-table))) (aset standard-display-table c (vector (create-glyph (concat "\016" (char-to-string sc) "\017"))))) @@ -152,12 +160,16 @@ X frame." (if (memq window-system '(x w32)) (error "Cannot use string glyphs in a windowing system")) + (or standard-display-table + (setq standard-display-table (make-display-table))) (aset standard-display-table c (vector (create-glyph (concat "\e(0" (char-to-string gc) "\e(B"))))) ;;;###autoload (defun standard-display-underline (c uc) "Display character C as character UC plus underlining." + (or standard-display-table + (setq standard-display-table (make-display-table))) (aset standard-display-table c (vector (if window-system