aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-26 02:03:49 +0000
committerRichard M. Stallman2005-03-26 02:03:49 +0000
commite58b36207e7e8ebc97aecd90493c885b3414ee36 (patch)
tree07e2c5ef3ed4a1ff9cfe0210ca75687a1a50f409
parent10214524f12f7ecf43fa4ce71b3f61bdab89537c (diff)
downloademacs-e58b36207e7e8ebc97aecd90493c885b3414ee36.tar.gz
emacs-e58b36207e7e8ebc97aecd90493c885b3414ee36.zip
(Standard Faces, Fringe Bitmaps, Customizing Bitmaps): Cleanup previous change.
(Face Attributes): Faces earlier in an :inherit list take precedence. (Scroll Bars): Fix description of vertical-scroll-bars. Document frame-current-scroll-bars and window-current-scroll-bars.
-rw-r--r--lispref/display.texi50
1 files changed, 36 insertions, 14 deletions
diff --git a/lispref/display.texi b/lispref/display.texi
index 74c6b3feb51..fdd8e1f0ef4 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -1695,10 +1695,10 @@ font. (This works only on certain systems.)
1695 1695
1696@item fringe 1696@item fringe
1697@kindex fringe @r{(face name)} 1697@kindex fringe @r{(face name)}
1698This face controls the default colors of window fringes, the thin areas on 1698This face controls the default colors of window fringes, the thin
1699either side that are used to display continuation and truncation glyphs. 1699areas on either side that are used to display continuation and
1700Other faces used to display bitmaps in the fringe implicitly inherits from 1700truncation glyphs. Other faces used to display bitmaps in the fringe
1701this face. 1701are implicitly merged with this face.
1702 1702
1703@item minibuffer-prompt 1703@item minibuffer-prompt
1704@kindex minibuffer-prompt @r{(face name)} 1704@kindex minibuffer-prompt @r{(face name)}
@@ -2008,6 +2008,8 @@ color. The value is used like that of @code{:underline}.
2008The name of a face from which to inherit attributes, or a list of face 2008The name of a face from which to inherit attributes, or a list of face
2009names. Attributes from inherited faces are merged into the face like an 2009names. Attributes from inherited faces are merged into the face like an
2010underlying face would be, with higher priority than underlying faces. 2010underlying face would be, with higher priority than underlying faces.
2011If a list of faces is used, attributes from faces earlier in the list
2012override those from later faces.
2011 2013
2012@item :box 2014@item :box
2013Whether or not a box should be drawn around characters, its color, the 2015Whether or not a box should be drawn around characters, its color, the
@@ -2833,12 +2835,12 @@ line in a window is by specifying the @code{display} property for one
2833of the characters that appears in it. Use a display specification of 2835of the characters that appears in it. Use a display specification of
2834the form @code{(left-fringe @var{bitmap} [@var{face}])} or 2836the form @code{(left-fringe @var{bitmap} [@var{face}])} or
2835@code{(right-fringe @var{bitmap} [@var{face}])} (@pxref{Display 2837@code{(right-fringe @var{bitmap} [@var{face}])} (@pxref{Display
2836Property}). Here, @var{bitmap} is a symbol identifying the bitmap 2838Property}). Here, @var{bitmap} is a symbol identifying the bitmap you
2837you want, and @var{face} (which is optional) is the name of the face 2839want, and @var{face} (which is optional) is the name of the face whose
2838whose colors should be used for displaying the bitmap, instead of the 2840colors should be used for displaying the bitmap, instead of the
2839default @code{fringe} face. When specified, @var{face} implicitly 2841default @code{fringe} face. @var{face} is automatically merged with
2840inherits from the @code{fringe} face, so normally @var{face} only 2842the @code{fringe} face, so normally @var{face} need only specify the
2841specifies the foreground color for the bitmap. 2843foreground color for the bitmap.
2842 2844
2843 These are the symbols identify the standard fringe bitmaps. 2845 These are the symbols identify the standard fringe bitmaps.
2844Evaluate @code{(require 'fringe)} to define them. Fringe bitmap 2846Evaluate @code{(require 'fringe)} to define them. Fringe bitmap
@@ -2928,8 +2930,8 @@ This sets the face for the fringe bitmap @var{bitmap} to @var{face}.
2928If @var{face} is @code{nil}, it selects the @code{fringe} face. The 2930If @var{face} is @code{nil}, it selects the @code{fringe} face. The
2929bitmap's face controls the color to draw it in. 2931bitmap's face controls the color to draw it in.
2930 2932
2931The @var{face} implicitly inherits from the @code{fringe} face, 2933@var{face} is merged with the @code{fringe} face, so normally
2932so normally @var{face} should specifu only the foreground color. 2934@var{face} should specify only the foreground color.
2933@end defun 2935@end defun
2934 2936
2935@node Overlay Arrow 2937@node Overlay Arrow
@@ -2991,11 +2993,21 @@ used.
2991@section Scroll Bars 2993@section Scroll Bars
2992 2994
2993Normally the frame parameter @code{vertical-scroll-bars} controls 2995Normally the frame parameter @code{vertical-scroll-bars} controls
2994whether the windows in the frame have vertical scroll bars. A 2996whether the windows in the frame have vertical scroll bars, and
2995non-@code{nil} parameter value means they do. The frame parameter 2997whether they are on the left or right. The frame parameter
2996@code{scroll-bar-width} specifies how wide they are (@code{nil} 2998@code{scroll-bar-width} specifies how wide they are (@code{nil}
2997meaning the default). @xref{Window Frame Parameters}. 2999meaning the default). @xref{Window Frame Parameters}.
2998 3000
3001@defun frame-current-scroll-bars &optional frame
3002This function reports the scroll bar type settings for frame
3003@var{frame}. The value is a cons cell
3004@code{(@var{vertical-type} .@: @var{horizontal-type})}, where
3005@var{vertical-type} is either @code{left}, @code{right}, or @code{nil}
3006(which means no scroll bar.) @var{horizontal-type} is meant to
3007specify the horizontal scroll bar type, but since they are not
3008implemented, it is always @code{nil}.
3009@end defun
3010
2999@vindex vertical-scroll-bar 3011@vindex vertical-scroll-bar
3000 You can enable or disable scroll bars for a particular buffer, 3012 You can enable or disable scroll bars for a particular buffer,
3001by setting the variable @code{vertical-scroll-bar}. This variable 3013by setting the variable @code{vertical-scroll-bar}. This variable
@@ -3050,6 +3062,16 @@ are @code{nil} for no scroll bar, @code{left} to put a scroll bar on
3050the left, and @code{right} to put a scroll bar on the right. 3062the left, and @code{right} to put a scroll bar on the right.
3051@end defvar 3063@end defvar
3052 3064
3065@defun window-current-scroll-bars &optional window
3066This function reports the scroll bar type for window @var{window}.
3067If @var{window} is omitted or @code{nil}, the selected window is used.
3068The value is a cons cell
3069@code{(@var{vertical-type} .@: @var{horizontal-type})}. Unlike
3070@code{window-scroll-bars}, this reports the scroll bar type actually
3071used, once frame defaults and @code{scroll-bar-mode} are taken into
3072account.
3073@end defun
3074
3053@defvar scroll-bar-width 3075@defvar scroll-bar-width
3054This variable, always local in all buffers, specifies the width of the 3076This variable, always local in all buffers, specifies the width of the
3055buffer's scroll bars, measured in pixels. A value of @code{nil} means 3077buffer's scroll bars, measured in pixels. A value of @code{nil} means