]> code.delx.au - gnu-emacs/blobdiff - lispref/display.texi
(mark-sexp): Mark more if repeated.
[gnu-emacs] / lispref / display.texi
index 5198657c27393aa71a8db5e1c2297673a1e34135..5c43f534d3294008bf36d296b5b0fdf4f9419c96 100644 (file)
@@ -199,10 +199,10 @@ its normal size.  If the minibuffer is active, this brings the
 minibuffer contents back onto the screen immediately.
 
 @vindex message-truncate-lines
-Normally, displaying a message that is longer than one line resizes
-the echo area to display the entire message.  But if the variable
-@code{message-truncate-lines} is non-@code{nil}, the echo area does
-not resize, and the message is truncated, as in Emacs 20 and before.
+Normally, displaying a long message resizes the echo area to display
+the entire message.  But if the variable @code{message-truncate-lines}
+is non-@code{nil}, the echo area does not resize, and the message is
+truncated to fit it, as in Emacs 20 and before.
 
 @example
 @group
@@ -1161,7 +1161,7 @@ the beginning of the result if one multi-column character in
 
 @node Faces
 @section Faces
-@cindex face
+@cindex faces
 
   A @dfn{face} is a named collection of graphical attributes: font
 family, foreground color, background color, optional underlining, and
@@ -1481,12 +1481,13 @@ The value can be a string; that should be the name of a file containing
 external-format X bitmap data.  The file is found in the directories
 listed in the variable @code{x-bitmap-file-path}.
 
-Alternatively, the value can specify the bitmap directly, with a list of
-the form @code{(@var{width} @var{height} @var{data})}.  Here,
-@var{width} and @var{height} specify the size in pixels, and @var{data}
-is a string containing the raw bits of the bitmap, row by row.  Each row
-occupies @math{(@var{width} + 7) / 8} consecutie bytes in the string
-(which should be a unibyte string for best results).
+Alternatively, the value can specify the bitmap directly, with a list
+of the form @code{(@var{width} @var{height} @var{data})}.  Here,
+@var{width} and @var{height} specify the size in pixels, and
+@var{data} is a string containing the raw bits of the bitmap, row by
+row.  Each row occupies @math{(@var{width} + 7) / 8} consecutive bytes
+in the string (which should be a unibyte string for best results).
+This means that each row always occupies at least one whole byte.
 
 If the value is @code{nil}, that means use no stipple pattern.
 
@@ -1629,7 +1630,7 @@ to the corresponding values.
 @defun face-attribute face attribute &optional frame
 This returns the value of the @var{attribute} attribute of face
 @var{face} on @var{frame}.  If @var{frame} is @code{nil},
-that means the selected frame.
+that means the selected frame (@pxref{Input Focus}).
 
 If @var{frame} is @code{t}, the value is the default for
 @var{face} for new frames.
@@ -2049,7 +2050,8 @@ available fonts.  Otherwise, @var{family} must be a string; it may
 contain the wildcards @samp{?} and @samp{*}.
 
 The list describes the display that @var{frame} is on; if @var{frame} is
-omitted or @code{nil}, it applies to the selected frame's display.
+omitted or @code{nil}, it applies to the selected frame's display
+(@pxref{Input Focus}).
 
 The list contains a vector of the following form for each font:
 
@@ -2073,7 +2075,7 @@ The result list is sorted according to the current face font sort order.
 @tindex x-font-family-list
 This function returns a list of the font families available for
 @var{frame}'s display.  If @var{frame} is omitted or @code{nil}, it
-describes the selected frame's display.
+describes the selected frame's display (@pxref{Input Focus}).
 
 The value is a list of elements of this form:
 
@@ -2609,7 +2611,8 @@ in some formats include a mask which can be removed by specifying
 @tindex image-mask-p
 This function returns @code{t} if image @var{spec} has a mask bitmap.
 @var{frame} is the frame on which the image will be displayed.
-@var{frame} @code{nil} or omitted means to use the selected frame.
+@var{frame} @code{nil} or omitted means to use the selected frame
+(@pxref{Input Focus}).
 @end defun
 
 @node XBM Images
@@ -2814,15 +2817,19 @@ The function returns @code{nil} if images of this type are not
 supported.  Otherwise it returns an image descriptor.
 @end defun
 
-@defmac defimage variable doc &rest specs
+@defmac defimage symbol specs &optional doc
 @tindex defimage
-This macro defines @var{variable} as an image name.  The second argument,
-@var{doc}, is an optional documentation string.  The remaining
-arguments, @var{specs}, specify alternative ways to display the image.
+This macro defines @var{symbol} as an image name.  The arguments
+@var{specs} is a list which specifies how to display the image.
+The third argument, @var{doc}, is an optional documentation string.
 
 Each argument in @var{specs} has the form of a property list, and each
-one should specify at least the @code{:type} property and the
-@code{:file} property.  Here is an example:
+one should specify at least the @code{:type} property and either the
+@code{:file} or the @code{:data} property.  The value of @code{:type}
+should be a symbol specifying the image type, the value of
+@code{:file} is the file to load the image from, and the value of
+@code{:data} is a string containing the actual image data.  Here is an
+example:
 
 @example
 (defimage test-image
@@ -2833,9 +2840,9 @@ one should specify at least the @code{:type} property and the
 @code{defimage} tests each argument, one by one, to see if it is
 usable---that is, if the type is supported and the file exists.  The
 first usable argument is used to make an image descriptor which is
-stored in the variable @var{variable}.
+stored in @var{symbol}.
 
-If none of the alternatives will work, then @var{variable} is defined
+If none of the alternatives will work, then @var{symbol} is defined
 as @code{nil}.
 @end defmac
 
@@ -2922,7 +2929,8 @@ specification.  @var{pixels} non-nil means return sizes measured in
 pixels, otherwise return sizes measured in canonical character units
 (fractions of the width/height of the frame's default font).
 @var{frame} is the frame on which the image will be displayed.
-@var{frame} null or omitted means use the selected frame.
+@var{frame} null or omitted means use the selected frame (@pxref{Input
+Focus}).
 @end defun
 
 @node Image Cache