[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f9519a9: Add a fringe example
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master f9519a9: Add a fringe example |
Date: |
Tue, 22 Oct 2019 10:21:17 -0400 (EDT) |
branch: master
commit f9519a9c8649f50ee8f34773d050c4b5346f1efd
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Add a fringe example
* doc/lispref/display.texi (Fringe Bitmaps): Add an example.
---
doc/lispref/display.texi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 82d9f1d..d7a1182 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
color is used to display the bitmap; this face is automatically merged
with the @code{fringe} face.
+ For instance, to display an arrow in the left fringe, using the
+@code{warning} face, you could say something like:
+
+@lisp
+(overlay-put
+ (make-overlay (point) (point))
+ 'before-string (propertize
+ "x" 'display
+ `(left-fringe right-arrow warning)))
+@end lisp
+
Here is a list of the standard fringe bitmaps defined in Emacs, and
how they are currently used in Emacs (via
@code{fringe-indicator-alist} and @code{fringe-cursor-alist}):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f9519a9: Add a fringe example,
Lars Ingebrigtsen <=