]> git.eshelyaron.com Git - emacs.git/commitdiff
* disp-table.el (standard-display-8bit)
authorKenichi Handa <handa@m17n.org>
Tue, 28 Oct 2003 06:53:41 +0000 (06:53 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 28 Oct 2003 06:53:41 +0000 (06:53 +0000)
(standard-display-default, standard-display-ascii)
(standard-display-g1, standard-display-graphic)
(standard-display-underline): Assure that standard-display-table
is a display table.

lisp/ChangeLog
lisp/disp-table.el

index 557e49eed2cfd3a22e3db3ae84698bec8097423f..f8da573f6036cae3e888c28fcf8ffbf6bf71e8bd 100644 (file)
@@ -1,3 +1,11 @@
+2003-10-28  Kenichi Handa  <handa@etlken2>
+
+       * 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.
+
 2003-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * simple.el (reindent-then-newline-and-indent): Delete space *after*
index 028c293f2210448edd3c709826cc6c0308bd890f..6403b7de8b06755aa80457afb98837e0c4c86a86 100644 (file)
@@ -113,6 +113,8 @@ Valid symbols are `truncation', `wrap', `escape', `control',
 ;;;###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 @@ Valid symbols are `truncation', `wrap', `escape', `control',
 ;;;###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 @@ Valid symbols are `truncation', `wrap', `escape', `control',
 ;;;###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 @@ This function assumes that your terminal uses the SO/SI characters;
 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 @@ This function assumes VT100-compatible escapes; 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 "\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