Mercurial > emacs
comparison lispref/display.texi @ 52483:3bbb565fa7ac
(Fontsets): Add char-displayable-p.
(Scroll Bars): New node.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Sep 2003 00:59:55 +0000 |
parents | 695cf19ef79e |
children | f1ba36825faa |
comparison
equal
deleted
inserted
replaced
52482:702be51912a8 | 52483:3bbb565fa7ac |
---|---|
23 * Overlays:: Use overlays to highlight parts of the buffer. | 23 * Overlays:: Use overlays to highlight parts of the buffer. |
24 * Width:: How wide a character or string is on the screen. | 24 * Width:: How wide a character or string is on the screen. |
25 * Faces:: A face defines a graphics style for text characters: | 25 * Faces:: A face defines a graphics style for text characters: |
26 font, colors, etc. | 26 font, colors, etc. |
27 * Fringes:: Controlling window fringes. | 27 * Fringes:: Controlling window fringes. |
28 * Scroll Bars:: Controlling vertical scroll bars. | |
28 * Display Property:: Enabling special display features. | 29 * Display Property:: Enabling special display features. |
29 * Images:: Displaying images in Emacs buffers. | 30 * Images:: Displaying images in Emacs buffers. |
30 * Blinking:: How Emacs shows the matching open parenthesis. | 31 * Blinking:: How Emacs shows the matching open parenthesis. |
31 * Inverse Video:: Specifying how the screen looks. | 32 * Inverse Video:: Specifying how the screen looks. |
32 * Usual Display:: The usual conventions for displaying nonprinting chars. | 33 * Usual Display:: The usual conventions for displaying nonprinting chars. |
2475 Then, the font specifications for all but Chinese GB2312 characters have | 2476 Then, the font specifications for all but Chinese GB2312 characters have |
2476 @samp{fixed} in the @var{family} field, and the font specification for | 2477 @samp{fixed} in the @var{family} field, and the font specification for |
2477 Chinese GB2312 characters has a wild card @samp{*} in the @var{family} | 2478 Chinese GB2312 characters has a wild card @samp{*} in the @var{family} |
2478 field. | 2479 field. |
2479 | 2480 |
2481 @defun char-displayable-p char | |
2482 This function returns @code{t} if Emacs ought to be able to display | |
2483 @var{char}. More precisely, if the selected frame's fontset has a | |
2484 font to display the character set that @var{char} belongs to. | |
2485 | |
2486 Fontsets can specify a font on a per-character basis; when the fontset | |
2487 does that, this function's value may not be accurate. | |
2488 @end defun | |
2489 | |
2480 @node Fringes | 2490 @node Fringes |
2481 @section Fringes | 2491 @section Fringes |
2482 @cindex Fringes | 2492 @cindex Fringes |
2483 | 2493 |
2484 The @dfn{fringes} of a window are thin vertical strips down the | 2494 The @dfn{fringes} of a window are thin vertical strips down the |
2522 @defun window-fringes window | 2532 @defun window-fringes window |
2523 This function returns information about the fringes of a window | 2533 This function returns information about the fringes of a window |
2524 @var{window}. The value has the form @code{(@var{left-width} | 2534 @var{window}. The value has the form @code{(@var{left-width} |
2525 @var{right-width} @var{frames-outside-margins})}. | 2535 @var{right-width} @var{frames-outside-margins})}. |
2526 @end defun | 2536 @end defun |
2537 | |
2538 @node Scroll Bars | |
2539 @section Scroll Bars | |
2540 | |
2541 Normally the frame parameter @code{vertical-scroll-bars} controls | |
2542 whether the windows in the frame have vertical scroll bars. A | |
2543 non-@code{nil} parameter value means they do. The frame parameter | |
2544 @code{scroll-bar-width} specifies how wide they are (@code{nil} | |
2545 meaning the default). @xref{Window Frame Parameters}. | |
2546 | |
2547 You can also control this for individual windows. Call the function | |
2548 @code{set-window-scroll-bars} to specify what to do for a specific window: | |
2549 | |
2550 @defun set-window-scroll-bars window width &optional vertical-type horizontal-type | |
2551 Set width and type of scroll bars of window @var{window}. (If | |
2552 @var{window} is @code{nil}, this applies to the selected window.) | |
2553 @var{width} specifies the scroll bar width in pixels (@code{nil} means | |
2554 use whatever is specified for width for the frame). | |
2555 @var{vertical-type} specifies whether to have a vertical scroll bar | |
2556 and, if so, where. The possible values are @code{left}, @code{right} | |
2557 and @code{nil}, just like the values of the | |
2558 @code{vertical-scroll-bars} frame parameter. | |
2559 | |
2560 The argument @var{horizontal-type} is meant to specify whether and | |
2561 where to have horizontal scroll bars, but since they are not | |
2562 implemented, it has no effect. | |
2563 @end defun | |
2564 | |
2565 @defun window-scroll-bars &optional window | |
2566 Report the width and type of scroll bars specified for @var{window}. | |
2567 If @var{window} is omitted or @code{nil}, it defaults to the currently | |
2568 selected window. The value is a list of the form @code{(@var{width} | |
2569 @var{cols} @var{vertical-type} @var{horizontal-type})}. The value | |
2570 @var{width} is the value that was specified for the width (which may | |
2571 be @code{nil}); @var{cols} is the number of columns that the scroll | |
2572 bar actually occupies. | |
2573 | |
2574 @var{horizontal-type} is not actually meaningful. | |
2575 @end defun | |
2576 | |
2577 If you don't specify these values for a window with | |
2578 @code{set-window-scroll-bars}, the buffer-local variables | |
2579 @code{scroll-bar-mode} and @code{scroll-bar-width} in the buffer being | |
2580 displayed control the window's vertical scroll bars. The function | |
2581 @code{set-window-buffer} examines these variables. If you change them | |
2582 in a buffer that is already visible in a window, you can make the | |
2583 window take note of the new values by calling @code{set-window-buffer} | |
2584 specifying the same buffer that is already displayed. | |
2527 | 2585 |
2528 @node Display Property | 2586 @node Display Property |
2529 @section The @code{display} Property | 2587 @section The @code{display} Property |
2530 @cindex display specification | 2588 @cindex display specification |
2531 @kindex display @r{(text property)} | 2589 @kindex display @r{(text property)} |