Function: speedbar-check-vc-this-line

speedbar-check-vc-this-line is a byte-compiled function defined in speedbar.el.gz.

Signature

(speedbar-check-vc-this-line DEPTH)

Documentation

Return t if the file on this line is checked out of a version control system.

Parameter DEPTH is a string with the current depth of indentation of the file being checked.

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-check-vc-this-line (depth)
  "Return t if the file on this line is checked out of a version control system.
Parameter DEPTH is a string with the current depth of indentation of
the file being checked."
  (let* ((d (string-to-number depth))
	 (f (speedbar-line-directory d))
	 (fn (buffer-substring-no-properties
	      ;; Skip-chars: thanks ptype@dra.hmg.gb
	      (point) (progn
			(skip-chars-forward "^ " (line-end-position))
			(point))))
	 (fulln (concat f fn)))
    (if (<= 2 speedbar-verbosity-level)
	(dframe-message "Speedbar vc check...%s" fulln))
    (and (file-writable-p fulln)
	 (speedbar-this-file-in-vc f fn)
         t)))