Function: speedbar-insert-files-at-point
speedbar-insert-files-at-point is a byte-compiled function defined in
speedbar.el.gz.
Signature
(speedbar-insert-files-at-point FILES LEVEL)
Documentation
Insert list of FILES starting at point, and indenting all files to LEVEL.
Tag expandable items with a +, otherwise a ?. Don't highlight ? as we don't know how to manage them. The input parameter FILES is a cons cell of the form (DIRLIST . FILELIST).
Source Code
;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
;;; Build button lists
;;
(defun speedbar-insert-files-at-point (files level)
"Insert list of FILES starting at point, and indenting all files to LEVEL.
Tag expandable items with a +, otherwise a ?. Don't highlight ? as we
don't know how to manage them. The input parameter FILES is a cons
cell of the form (DIRLIST . FILELIST)."
;; Start inserting all the directories
(let ((dirs (car files)))
(while dirs
(speedbar-make-tag-line 'angle ?+ 'speedbar-dired (car dirs)
(car dirs) 'speedbar-dir-follow nil
'speedbar-directory-face level)
(setq dirs (cdr dirs))))
(let ((lst (car (cdr files)))
(case-fold-search t))
(while lst
(let* ((known (string-match speedbar-file-regexp (car lst)))
(expchar (if known ?+ ??))
(fn (if known 'speedbar-tag-file nil)))
(if (or speedbar-show-unknown-files (/= expchar ??))
(speedbar-make-tag-line 'bracket expchar fn (car lst)
(car lst) 'speedbar-find-file nil
'speedbar-file-face level)))
(setq lst (cdr lst)))))