summaryrefslogtreecommitdiff
path: root/lisp/fringe.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/fringe.el')
-rw-r--r--lisp/fringe.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/fringe.el b/lisp/fringe.el
index 31d80a8a77d..92387a21571 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -1,4 +1,4 @@
-;;; fringe.el --- fringe setup and control
+;;; fringe.el --- fringe setup and control -*- lexical-binding:t -*-
;; Copyright (C) 2002-2019 Free Software Foundation, Inc.
@@ -291,6 +291,24 @@ SIDE must be the symbol `left' or `right'."
0)
(float (frame-char-width))))
+;;;###autoload
+(unless (fboundp 'define-fringe-bitmap)
+ (defun define-fringe-bitmap (_bitmap _bits &optional _height _width _align)
+ "Define fringe bitmap BITMAP from BITS of size HEIGHT x WIDTH.
+BITMAP is a symbol identifying the new fringe bitmap.
+BITS is either a string or a vector of integers.
+HEIGHT is height of bitmap. If HEIGHT is nil, use length of BITS.
+WIDTH must be an integer between 1 and 16, or nil which defaults to 8.
+Optional fifth arg ALIGN may be one of ‘top’, ‘center’, or ‘bottom’,
+indicating the positioning of the bitmap relative to the rows where it
+is used; the default is to center the bitmap. Fifth arg may also be a
+list (ALIGN PERIODIC) where PERIODIC non-nil specifies that the bitmap
+should be repeated.
+If BITMAP already exists, the existing definition is replaced."
+ ;; This is a fallback for non-GUI builds.
+ ;; The real implementation is in src/fringe.c.
+ ))
+
(provide 'fringe)
;;; fringe.el ends here