aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-09-12 01:43:17 +0000
committerRichard M. Stallman2006-09-12 01:43:17 +0000
commitc5b0bab9dcab24e92582696f0af559ead52d9420 (patch)
treebdddd8e8d141b82316fef9e57760a8c249b40acd
parent8b170b8222bc9f10e85baab425784a711ecc0b3e (diff)
downloademacs-c5b0bab9dcab24e92582696f0af559ead52d9420.tar.gz
emacs-c5b0bab9dcab24e92582696f0af559ead52d9420.zip
(Glyphs): Clarifications.
-rw-r--r--lispref/ChangeLog1
-rw-r--r--lispref/display.texi44
2 files changed, 23 insertions, 22 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index 7999014e114..d3639fcac62 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,6 +1,7 @@
12006-09-11 Richard Stallman <rms@gnu.org> 12006-09-11 Richard Stallman <rms@gnu.org>
2 2
3 * display.texi (Display Table Format): Wording clarification. 3 * display.texi (Display Table Format): Wording clarification.
4 (Glyphs): Clarifications.
4 5
52006-09-10 Chong Yidong <cyd@stupidchicken.com> 62006-09-10 Chong Yidong <cyd@stupidchicken.com>
6 7
diff --git a/lispref/display.texi b/lispref/display.texi
index af8cbe08897..e7fab3ac7a8 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -5252,14 +5252,14 @@ are defined in the library @file{disp-table}.
5252 A @dfn{glyph} is a generalization of a character; it stands for an 5252 A @dfn{glyph} is a generalization of a character; it stands for an
5253image that takes up a single character position on the screen. Glyphs 5253image that takes up a single character position on the screen. Glyphs
5254are represented in Lisp as integers, just as characters are. Normally 5254are represented in Lisp as integers, just as characters are. Normally
5255Emacs finds glyphs in the display table (@pxref{Display Tables}). 5255glyph come from vectors in the display table (@pxref{Display Tables}).
5256 5256
5257 A glyph can be @dfn{simple} or it can be defined by the @dfn{glyph 5257 A glyph code can be @dfn{simple} or it can be defined by the
5258table}. A simple glyph is just a way of specifying a character and a 5258@dfn{glyph table}. A simple glyph code is just a way of specifying a
5259face to output it in. The glyph code for a simple glyph, mod 524288, 5259character and a face to output it in. When a glyph code is simple,
5260is the character to output, and the glyph code divided by 524288 5260the code, mod 524288, is the character to output, and the code divided
5261specifies the face number (@pxref{Face Functions}) to use while 5261by 524288 specifies the face number (@pxref{Face Functions}) to use
5262outputting it. (524288 is 5262while outputting it. (524288 is
5263@ifnottex 5263@ifnottex
52642**19.) 52642**19.)
5265@end ifnottex 5265@end ifnottex
@@ -5269,35 +5269,35 @@ $2^{19}$.)
5269@xref{Faces}. 5269@xref{Faces}.
5270 5270
5271 On character terminals, you can set up a @dfn{glyph table} to define 5271 On character terminals, you can set up a @dfn{glyph table} to define
5272the meaning of glyph codes. The glyph codes is the value of the 5272the meaning of glyph codes.
5273variable @code{glyph-table}.
5274 5273
5275@defvar glyph-table 5274@defvar glyph-table
5276The value of this variable is the current glyph table. It should be a 5275The value of this variable is the current glyph table. It should be
5277vector; the @var{g}th element defines glyph code @var{g}. 5276@code{nil} or a vector whose @var{g}th element defines glyph code
5277@var{g}.
5278 5278
5279If a glyph code is greater than or equal to the length of the glyph 5279If a glyph code is greater than or equal to the length of the glyph
5280table, that code is automatically simple. If the value of 5280table, that code is automatically simple. If @code{glyph-table} is
5281@code{glyph-table} is @code{nil} instead of a vector, then all glyphs 5281@code{nil} then all glyph codes are simple.
5282are simple. The glyph table is not used on graphical displays, only 5282
5283on character terminals. On graphical displays, all glyphs are simple. 5283The glyph table is used only on character terminals. On graphical
5284displays, all glyph codes are simple.
5284@end defvar 5285@end defvar
5285 5286
5286 Here are the possible types of elements in the glyph table: 5287 Here are the meaningful types of elements in the glyph table:
5287 5288
5288@table @asis 5289@table @asis
5289@item @var{string} 5290@item @var{string}
5290Send the characters in @var{string} to the terminal to output 5291Send the characters in @var{string} to the terminal to output
5291this glyph. This alternative is available on character terminals, 5292this glyph code.
5292but not on graphical displays.
5293 5293
5294@item @var{integer} 5294@item @var{integer}
5295Define this glyph code as an alias for glyph code @var{integer}. You 5295Define this glyph code as an alias for glyph code @var{integer}. You
5296can use an alias to specify a face code for the glyph and use a small 5296can use such an alias to define a small-numbered glyph code which
5297number as its code. 5297specifies a face.
5298 5298
5299@item @code{nil} 5299@item @code{nil}
5300This glyph is simple. 5300This glyph code is simple.
5301@end table 5301@end table
5302 5302
5303@defun create-glyph string 5303@defun create-glyph string