summaryrefslogtreecommitdiff
path: root/lisp/fringe.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-02-21 11:39:46 +0000
committerKim F. Storm <storm@cua.dk>2006-02-21 11:39:46 +0000
commit2870bad90e5da7c5d16ab56f31bc02ca60ca93f7 (patch)
treec76f6989b322e4dcdab09a80757d91f179b42492 /lisp/fringe.el
parenta4b7b036d22264c0194e48a3dd06df76b47e0027 (diff)
downloademacs-2870bad90e5da7c5d16ab56f31bc02ca60ca93f7.tar.gz
Fix last change.
Diffstat (limited to 'lisp/fringe.el')
-rw-r--r--lisp/fringe.el77
1 files changed, 39 insertions, 38 deletions
diff --git a/lisp/fringe.el b/lisp/fringe.el
index e3d7de10d22..317fff0973c 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -43,44 +43,45 @@
;; Define the built-in fringe bitmaps and setup default mappings
-(let ((bitmaps '(question-mark
- left-arrow right-arrow up-arrow down-arrow
- left-curly-arrow right-curly-arrow
- left-triangle right-triangle
- top-left-angle top-right-angle
- bottom-left-angle bottom-right-angle
- left-bracket right-bracket
- filled-rectangle hollow-rectangle
- filled-square hollow-square
- vertical-bar horizontal-bar
- empty-line))
- (bn 1))
- (while bitmaps
- (push (car bitmaps) fringe-bitmaps)
- (put (car bitmaps) 'fringe bn)
- (setq bitmaps (cdr bitmaps)
- bn (1+ bn))))
-
-(setq-default fringe-indicator-alist
- '((truncation . (left-arrow right-arrow))
- (continuation . (left-curly-arrow right-curly-arrow))
- (overlay-arrow . right-triangle)
- (up . up-arrow)
- (down . down-arrow)
- (top . (top-left-angle top-right-angle))
- (bottom . (bottom-left-angle bottom-right-angle
- top-right-angle top-left-angle))
- (top-bottom . (left-bracket right-bracket
- top-right-angle top-left-angle))
- (empty-line . empty-line)
- (unknown . question-mark)))
-
-(setq-default fringe-cursor-alist
- '((box . filled-rectangle)
- (hollow . hollow-rectangle)
- (bar . vertical-bar)
- (hbar . horizontal-bar)
- (hollow-small . hollow-square)))
+(when (boundp 'fringe-bitmaps)
+ (let ((bitmaps '(question-mark
+ left-arrow right-arrow up-arrow down-arrow
+ left-curly-arrow right-curly-arrow
+ left-triangle right-triangle
+ top-left-angle top-right-angle
+ bottom-left-angle bottom-right-angle
+ left-bracket right-bracket
+ filled-rectangle hollow-rectangle
+ filled-square hollow-square
+ vertical-bar horizontal-bar
+ empty-line))
+ (bn 1))
+ (while bitmaps
+ (push (car bitmaps) fringe-bitmaps)
+ (put (car bitmaps) 'fringe bn)
+ (setq bitmaps (cdr bitmaps)
+ bn (1+ bn))))
+
+ (setq-default fringe-indicator-alist
+ '((truncation . (left-arrow right-arrow))
+ (continuation . (left-curly-arrow right-curly-arrow))
+ (overlay-arrow . right-triangle)
+ (up . up-arrow)
+ (down . down-arrow)
+ (top . (top-left-angle top-right-angle))
+ (bottom . (bottom-left-angle bottom-right-angle
+ top-right-angle top-left-angle))
+ (top-bottom . (left-bracket right-bracket
+ top-right-angle top-left-angle))
+ (empty-line . empty-line)
+ (unknown . question-mark)))
+
+ (setq-default fringe-cursor-alist
+ '((box . filled-rectangle)
+ (hollow . hollow-rectangle)
+ (bar . vertical-bar)
+ (hbar . horizontal-bar)
+ (hollow-small . hollow-square))))
(defmacro fringe-bitmap-p (symbol)