Next: Character Descriptors, Previous: Display Table Format, Up: Display Tables [Contents][Index]
The active display table is controlled by the variable
current-display-table
. This is a specifier, which means
that you can specify separate values for it in individual buffers,
windows, frames, and devices, as well as a global value. It also
means that you cannot set this variable using setq
; use
set-specifier
instead. See Specifiers.
FSF Emacs uses window-display-table
, buffer-display-table
,
standard-display-table
, etc. to control the display table.
However, specifiers are a cleaner and more powerful way of doing
the same thing. FSF Emacs also uses a different format for
the contents of a display table, using additional indirection
to a “glyph table” and such. Note that “glyph” has a different
meaning in SXEmacs.
The display table currently in use. This is a specifier.
Display tables are used to control how characters are displayed. Each
time that redisplay processes a character, it is looked up in all the
display tables that apply obtained by calling specifier-instance
on current-display-table
and any overriding display tables
specified in currently active faces.
The first entry found that matches the character determines how the
character is displayed. If there is no matching entry, the default
display method is used. Non-control characters are displayed as
themselves and control characters are displayed according to the
buffer-local variable ctl-arrow
. Control characters are further
affected by control-arrow-glyph
and octal-escape-glyph
.
Each instantiator in this specifier and the display-table specifiers in faces is a display table or a list of such tables. If a list, each table will be searched in turn for an entry matching a particular character. Each display table is one of
char
or generic
.
Each entry in a display table should be one of
#### At some point in the near future, display tables are likely to be expanded to include other features, such as referencing characters in particular fonts and allowing the character search to continue all the way up the chain of specifier instantiators. These features are necessary to properly display Unicode characters.
Individual faces can also specify an overriding display table;
this is set using set-face-display-table
. See Faces.
If no display table can be determined for a particular window, then SXEmacs uses the usual display conventions. See Usual Display.
Next: Character Descriptors, Previous: Display Table Format, Up: Display Tables [Contents][Index]