Function: ebrowse-draw-member-short-fn
ebrowse-draw-member-short-fn is a byte-compiled function defined in
ebrowse.el.gz.
Signature
(ebrowse-draw-member-short-fn MEMBER-LIST TREE)
Documentation
Display MEMBER-LIST in short form.
TREE is the class tree in which the members are found.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-draw-member-short-fn (member-list tree)
"Display MEMBER-LIST in short form.
TREE is the class tree in which the members are found."
(let ((i 0)
(column-width (+ ebrowse--column-width
(if ebrowse--attributes-flag 12 0))))
;; Get the number of columns to draw.
(setq ebrowse--n-columns
(max 1 (/ (ebrowse-width-of-drawable-area) column-width)))
(dolist (member (mapcar #'ebrowse-member-display-p member-list))
(when member
(let ((name (ebrowse-ms-name member))
start-of-entry
(start-of-column (point))
start-of-name)
(indent-to (* i column-width))
(put-text-property start-of-column (point) 'mouse-face nil)
(setq start-of-entry (point))
;; Show various attributes
(when ebrowse--attributes-flag
(insert "<")
(ebrowse-draw-member-attributes member)
(insert "> ")
(ebrowse-set-face start-of-entry (point)
'ebrowse-member-attribute))
;; insert member name truncated to column width
(setq start-of-name (point))
(insert (substring name 0
(min (length name)
(1- ebrowse--column-width))))
;; set text properties
(add-text-properties
start-of-name (point)
`(ebrowse-what member-name
ebrowse-member ,member
mouse-face highlight
ebrowse-tree ,tree
help-echo "mouse-2: view definition; mouse-3: menu"))
(cl-incf i)
(when (>= i ebrowse--n-columns)
(setf i 0)
(insert "\n")))))
(when (cl-plusp i)
(insert "\n"))
(goto-char (point-min))))