Mercurial > emacs
comparison lispref/display.texi @ 49600:23a1cea22d13
Trailing whitespace deleted.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Feb 2003 14:56:31 +0000 |
parents | 4dfb36c387bf |
children | 72af65197e01 d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
49599:5ade352e8d1c | 49600:23a1cea22d13 |
---|---|
1 @c -*-texinfo-*- | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | 2 @c This is part of the GNU Emacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002 | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001, 2002 |
4 @c Free Software Foundation, Inc. | 4 @c Free Software Foundation, Inc. |
5 @c See the file elisp.texi for copying conditions. | 5 @c See the file elisp.texi for copying conditions. |
6 @setfilename ../info/display | 6 @setfilename ../info/display |
7 @node Display, Calendar, Processes, Top | 7 @node Display, Calendar, Processes, Top |
8 @chapter Emacs Display | 8 @chapter Emacs Display |
9 | 9 |
407 @code{buffer-invisibility-spec} and as the value of the | 407 @code{buffer-invisibility-spec} and as the value of the |
408 @code{invisible} property: | 408 @code{invisible} property: |
409 | 409 |
410 @example | 410 @example |
411 ;; @r{If you want to display an ellipsis:} | 411 ;; @r{If you want to display an ellipsis:} |
412 (add-to-invisibility-spec '(my-symbol . t)) | 412 (add-to-invisibility-spec '(my-symbol . t)) |
413 ;; @r{If you don't want ellipsis:} | 413 ;; @r{If you don't want ellipsis:} |
414 (add-to-invisibility-spec 'my-symbol) | 414 (add-to-invisibility-spec 'my-symbol) |
415 | 415 |
416 (overlay-put (make-overlay beginning end) | 416 (overlay-put (make-overlay beginning end) |
417 'invisible 'my-symbol) | 417 'invisible 'my-symbol) |
418 | 418 |
419 ;; @r{When done with the overlays:} | 419 ;; @r{When done with the overlays:} |
481 in the file, it looks OK, with nothing invisible. The selective display | 481 in the file, it looks OK, with nothing invisible. The selective display |
482 effect is seen only within Emacs. | 482 effect is seen only within Emacs. |
483 | 483 |
484 @defvar selective-display | 484 @defvar selective-display |
485 This buffer-local variable enables selective display. This means that | 485 This buffer-local variable enables selective display. This means that |
486 lines, or portions of lines, may be made invisible. | 486 lines, or portions of lines, may be made invisible. |
487 | 487 |
488 @itemize @bullet | 488 @itemize @bullet |
489 @item | 489 @item |
490 If the value of @code{selective-display} is @code{t}, then the character | 490 If the value of @code{selective-display} is @code{t}, then the character |
491 control-m marks the start of invisible text; the control-m, and the rest | 491 control-m marks the start of invisible text; the control-m, and the rest |
1334 The way to define a new face is with @code{defface}. This creates a | 1334 The way to define a new face is with @code{defface}. This creates a |
1335 kind of customization item (@pxref{Customization}) which the user can | 1335 kind of customization item (@pxref{Customization}) which the user can |
1336 customize using the Customization buffer (@pxref{Easy Customization,,, | 1336 customize using the Customization buffer (@pxref{Easy Customization,,, |
1337 emacs, The GNU Emacs Manual}). | 1337 emacs, The GNU Emacs Manual}). |
1338 | 1338 |
1339 @defmac defface face spec doc [keyword value]... | 1339 @defmac defface face spec doc [keyword value]... |
1340 This declares @var{face} as a customizable face that defaults according | 1340 This declares @var{face} as a customizable face that defaults according |
1341 to @var{spec}. You should not quote the symbol @var{face}. The | 1341 to @var{spec}. You should not quote the symbol @var{face}. The |
1342 argument @var{doc} specifies the face documentation. The keywords you | 1342 argument @var{doc} specifies the face documentation. The keywords you |
1343 can use in @code{defface} are the same ones that are meaningful in both | 1343 can use in @code{defface} are the same ones that are meaningful in both |
1344 @code{defgroup} and @code{defcustom} (@pxref{Common Keywords}). | 1344 @code{defgroup} and @code{defcustom} (@pxref{Common Keywords}). |
1471 Relative proportionate width, also known as the character set width or | 1471 Relative proportionate width, also known as the character set width or |
1472 set width. This should be one of the symbols @code{ultra-condensed}, | 1472 set width. This should be one of the symbols @code{ultra-condensed}, |
1473 @code{extra-condensed}, @code{condensed}, @code{semi-condensed}, | 1473 @code{extra-condensed}, @code{condensed}, @code{semi-condensed}, |
1474 @code{normal}, @code{semi-expanded}, @code{expanded}, | 1474 @code{normal}, @code{semi-expanded}, @code{expanded}, |
1475 @code{extra-expanded}, or @code{ultra-expanded}. | 1475 @code{extra-expanded}, or @code{ultra-expanded}. |
1476 | 1476 |
1477 @item :height | 1477 @item :height |
1478 Either the font height, an integer in units of 1/10 point, a floating | 1478 Either the font height, an integer in units of 1/10 point, a floating |
1479 point number specifying the amount by which to scale the height of any | 1479 point number specifying the amount by which to scale the height of any |
1480 underlying face, or a function, which is called with the old height | 1480 underlying face, or a function, which is called with the old height |
1481 (from the underlying face), and should return the new height. | 1481 (from the underlying face), and should return the new height. |
1482 | 1482 |
1483 @item :weight | 1483 @item :weight |
1484 Font weight---a symbol from this series (from most dense to most faint): | 1484 Font weight---a symbol from this series (from most dense to most faint): |
1485 @code{ultra-bold}, @code{extra-bold}, @code{bold}, @code{semi-bold}, | 1485 @code{ultra-bold}, @code{extra-bold}, @code{bold}, @code{semi-bold}, |
1486 @code{normal}, @code{semi-light}, @code{light}, @code{extra-light}, | 1486 @code{normal}, @code{semi-light}, @code{light}, @code{extra-light}, |
1487 or @code{ultra-light}. | 1487 or @code{ultra-light}. |
1497 On a text-only terminal, slanted text is displayed as half-bright, if | 1497 On a text-only terminal, slanted text is displayed as half-bright, if |
1498 the terminal supports the feature. | 1498 the terminal supports the feature. |
1499 | 1499 |
1500 @item :foreground | 1500 @item :foreground |
1501 Foreground color, a string. | 1501 Foreground color, a string. |
1502 | 1502 |
1503 @item :background | 1503 @item :background |
1504 Background color, a string. | 1504 Background color, a string. |
1505 | 1505 |
1506 @item :inverse-video | 1506 @item :inverse-video |
1507 Whether or not characters should be displayed in inverse video. The | 1507 Whether or not characters should be displayed in inverse video. The |
1850 @item | 1850 @item |
1851 With a region that is active. In Transient Mark mode, the region is | 1851 With a region that is active. In Transient Mark mode, the region is |
1852 highlighted with the face @code{region} (@pxref{Standard Faces}). | 1852 highlighted with the face @code{region} (@pxref{Standard Faces}). |
1853 | 1853 |
1854 @item | 1854 @item |
1855 With special glyphs. Each glyph can specify a particular face | 1855 With special glyphs. Each glyph can specify a particular face |
1856 number. @xref{Glyphs}. | 1856 number. @xref{Glyphs}. |
1857 @end itemize | 1857 @end itemize |
1858 | 1858 |
1859 If these various sources together specify more than one face for a | 1859 If these various sources together specify more than one face for a |
1860 particular character, Emacs merges the attributes of the various faces | 1860 particular character, Emacs merges the attributes of the various faces |
2283 they mean. | 2283 they mean. |
2284 | 2284 |
2285 @menu | 2285 @menu |
2286 * Specified Space:: Displaying one space with a specified width. | 2286 * Specified Space:: Displaying one space with a specified width. |
2287 * Other Display Specs:: Displaying an image; magnifying text; moving it | 2287 * Other Display Specs:: Displaying an image; magnifying text; moving it |
2288 up or down on the page; adjusting the width | 2288 up or down on the page; adjusting the width |
2289 of spaces within text. | 2289 of spaces within text. |
2290 * Display Margins:: Displaying text or images to the side of the main text. | 2290 * Display Margins:: Displaying text or images to the side of the main text. |
2291 * Conditional Display:: Making any of the above features conditional | 2291 * Conditional Display:: Making any of the above features conditional |
2292 depending on some Lisp expression. | 2292 depending on some Lisp expression. |
2293 @end menu | 2293 @end menu |
2463 You can also set the margin widths immediately. | 2463 You can also set the margin widths immediately. |
2464 | 2464 |
2465 @defun set-window-margins window left &optional right | 2465 @defun set-window-margins window left &optional right |
2466 @tindex set-window-margins | 2466 @tindex set-window-margins |
2467 This function specifies the margin widths for window @var{window}. | 2467 This function specifies the margin widths for window @var{window}. |
2468 The argument @var{left} controls the left margin and | 2468 The argument @var{left} controls the left margin and |
2469 @var{right} controls the right margin (default @code{0}). | 2469 @var{right} controls the right margin (default @code{0}). |
2470 @end defun | 2470 @end defun |
2471 | 2471 |
2472 @defun window-margins &optional window | 2472 @defun window-margins &optional window |
2473 @tindex window-margins | 2473 @tindex window-margins |
3407 the meaning of glyph codes. The glyph codes is the value of the | 3407 the meaning of glyph codes. The glyph codes is the value of the |
3408 variable @code{glyph-table}. | 3408 variable @code{glyph-table}. |
3409 | 3409 |
3410 @defvar glyph-table | 3410 @defvar glyph-table |
3411 The value of this variable is the current glyph table. It should be a | 3411 The value of this variable is the current glyph table. It should be a |
3412 vector; the @var{g}th element defines glyph code @var{g}. | 3412 vector; the @var{g}th element defines glyph code @var{g}. |
3413 | 3413 |
3414 If a glyph code is greater than or equal to the length of the glyph | 3414 If a glyph code is greater than or equal to the length of the glyph |
3415 table, that code is automatically simple. If the value of | 3415 table, that code is automatically simple. If the value of |
3416 @code{glyph-table} is @code{nil} instead of a vector, then all glyphs | 3416 @code{glyph-table} is @code{nil} instead of a vector, then all glyphs |
3417 are simple. The glyph table is not used on graphical displays, only | 3417 are simple. The glyph table is not used on graphical displays, only |