aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-22 16:21:00 +0200
committerLars Ingebrigtsen2019-10-22 16:21:11 +0200
commitf9519a9c8649f50ee8f34773d050c4b5346f1efd (patch)
tree6a31b1cc58d89a7b5af7a73cbb1d5ec35f4c093f /doc
parent0e9d92146e3d4e5da597c3d1400cb31f58e19374 (diff)
downloademacs-f9519a9c8649f50ee8f34773d050c4b5346f1efd.tar.gz
emacs-f9519a9c8649f50ee8f34773d050c4b5346f1efd.zip
Add a fringe example
* doc/lispref/display.texi (Fringe Bitmaps): Add an example.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/display.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 82d9f1db619..d7a118296cb 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4218,6 +4218,17 @@ to display. The optional @var{face} names a face whose foreground
4218color is used to display the bitmap; this face is automatically merged 4218color is used to display the bitmap; this face is automatically merged
4219with the @code{fringe} face. 4219with the @code{fringe} face.
4220 4220
4221 For instance, to display an arrow in the left fringe, using the
4222@code{warning} face, you could say something like:
4223
4224@lisp
4225(overlay-put
4226 (make-overlay (point) (point))
4227 'before-string (propertize
4228 "x" 'display
4229 `(left-fringe right-arrow warning)))
4230@end lisp
4231
4221 Here is a list of the standard fringe bitmaps defined in Emacs, and 4232 Here is a list of the standard fringe bitmaps defined in Emacs, and
4222how they are currently used in Emacs (via 4233how they are currently used in Emacs (via
4223@code{fringe-indicator-alist} and @code{fringe-cursor-alist}): 4234@code{fringe-indicator-alist} and @code{fringe-cursor-alist}):