| www.delorie.com/gnu/docs/elisp-manual-21/elisp_661.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A display table is actually a char-table (see section 6.6 Char-Tables) with
display-table as its subtype.
nil in all elements.
The ordinary elements of the display table are indexed by character
codes; the element at index c says how to display the character
code c. The value should be nil or a vector of glyph
values (see section 38.17.3 Glyphs). If an element is nil, it says to
display that character according to the usual display conventions
(see section 38.16 Usual Display Conventions).
If you use the display table to change the display of newline characters, the whole buffer will be displayed as one long "line."
The display table also has six "extra slots" which serve special
purposes. Here is a table of their meanings; nil in any slot
means to use the default for that slot, as stated below.
For example, here is how to construct a display table that mimics the
effect of setting ctl-arrow to a non-nil value:
(setq disptab (make-display-table))
(let ((i 0))
(while (< i 32)
(or (= i ?\t) (= i ?\n)
(aset disptab i (vector ?^ (+ i 64))))
(setq i (1+ i)))
(aset disptab 127 (vector ?^ ??)))
|
truncation, wrap, escape, control,
selective-display, and vertical-border.
truncation, wrap, escape, control,
selective-display, and vertical-border.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |