comparison tests/gutter-test.el @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents 74fd4e045ea6
children
comparison
equal deleted inserted replaced
403:9f011ab08d48 404:2f8bb876ab1d
1 (setq str "Hello There\nHello Again") 1 (setq str "Hello\nAgain")
2 (setq str-ext (make-extent 0 5 str))
2 (set-extent-begin-glyph 3 (set-extent-begin-glyph
3 (make-extent 0 0 str) 4 str-ext
4 (make-glyph [xpm :file "../etc/xemacs-icon.xpm"])) 5 (make-glyph [xpm :file "../etc/xemacs-icon.xpm"]))
6 (set-extent-property str-ext 'mouse-face 'highlight)
5 7
8 (setq str2 "Hello\n")
9 (setq str2-ext (make-extent 0 1 str2))
6 (set-extent-begin-glyph 10 (set-extent-begin-glyph
7 (make-extent 3 3 str) 11 str2-ext
8 (make-glyph 12 (make-glyph
9 [button :width 5 :height 1 13 [button :width 5 :height 1
10 :face modeline-mousable 14 :face modeline-mousable
15 :callback (set-specifier bottom-gutter-visible-p '(str2))
11 :descriptor "ok" :selected t])) 16 :descriptor "ok" :selected t]))
12 17
13 (set-specifier default-gutter-height 'autodetect) 18 (set-specifier bottom-gutter-height 'autodetect)
14 (set-specifier default-gutter-width 40) 19 (set-specifier bottom-gutter-border-width 2)
15 (set-specifier default-gutter-border-width 2) 20 (set-gutter-element bottom-gutter 'str str)
16 (set-specifier default-gutter str) 21 (set-gutter-element bottom-gutter 'str2 str2)
17 (set-default-gutter-position 'bottom) 22 (set-gutter-element-visible-p bottom-gutter-visible-p 'str t)
23 (set-gutter-element-visible-p bottom-gutter-visible-p 'str2 t)