Function: speedbar-change-expand-button-char
speedbar-change-expand-button-char is a byte-compiled function defined
in speedbar.el.gz.
Signature
(speedbar-change-expand-button-char CHAR)
Documentation
Change the expansion button character to CHAR for the current line.
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-change-expand-button-char (char)
"Change the expansion button character to CHAR for the current line."
(save-excursion
(beginning-of-line)
(if (re-search-forward ":\\s-*.\\([-+?]\\)" (line-end-position) t)
(speedbar-with-writable
(goto-char (match-end 1))
(insert-char char 1 t)
(forward-char -1)
(delete-char -1)
;;(put-text-property (point) (1- (point)) 'invisible nil)
;; make sure we fix the image on the text here.
(speedbar-insert-image-button-maybe (- (point) 1) 3)))))