diff options
| author | Jim Blandy | 1993-05-10 00:16:34 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-10 00:16:34 +0000 |
| commit | be269961dc77973b482f07bd5c84cb9093e4443c (patch) | |
| tree | 9860753ddad19e90443d6fec0b6cf3b09591e47f /src | |
| parent | 88fd275e697fe57fd686e4fedde7f879c943a04f (diff) | |
| download | emacs-be269961dc77973b482f07bd5c84cb9093e4443c.tar.gz emacs-be269961dc77973b482f07bd5c84cb9093e4443c.zip | |
* xdisp.c (display_text_line): Apply faces to characters according
to overlays and text properties; use compute_char_face to figure out
what face to use, and where a new face starts.
* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure
we're implementing the glyph table properly. If we're not using
the default or mode line face, call intern_face to find a display
face for the frame face selected by the glyph code. Implement
underlining. Remove the `font' argument; we have to derive this
from the frame and face anyway. Change all callers.
* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/disptab.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/disptab.h b/src/disptab.h index 37f4bc76db2..d8a4c9ab06d 100644 --- a/src/disptab.h +++ b/src/disptab.h | |||
| @@ -63,6 +63,12 @@ extern Lisp_Object Vglyph_table; | |||
| 63 | return the alias for G. */ | 63 | return the alias for G. */ |
| 64 | #define GLYPH_ALIAS(base, g) XINT (base[g]) | 64 | #define GLYPH_ALIAS(base, g) XINT (base[g]) |
| 65 | 65 | ||
| 66 | /* Follow all aliases for G in the glyph table given by (BASE, | ||
| 67 | LENGTH), and set G to the final glyph. */ | ||
| 68 | #define GLYPH_FOLLOW_ALIASES(base, length, g) \ | ||
| 69 | while (GLYPH_ALIAS_P ((base), (length), (g))) \ | ||
| 70 | (g) = GLYPH_ALIAS ((base), (g)); | ||
| 71 | |||
| 66 | /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 0, | 72 | /* Assuming that GLYPH_SIMPLE_P (BASE, LEN, G) is 0, |
| 67 | return the length and the address of the character-sequence | 73 | return the length and the address of the character-sequence |
| 68 | used for outputting GLYPH G. */ | 74 | used for outputting GLYPH G. */ |