Function: ede-find-nearest-file-line

ede-find-nearest-file-line is a byte-compiled function defined in speedbar.el.gz.

Signature

(ede-find-nearest-file-line)

Documentation

Go backwards until we find a file.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/speedbar.el.gz
;;; Speedbar Project Methods
;;
(defun ede-find-nearest-file-line ()
  "Go backwards until we find a file."
  (save-excursion
    (beginning-of-line)
    (looking-at "^\\([0-9]+\\):")
    (let ((depth (string-to-number (match-string 1))))
      (while (not (re-search-forward "[]] [^ ]" (point-at-eol) t))
	(re-search-backward (format "^%d:" (1- depth)))
	(setq depth (1- depth)))
      (speedbar-line-token))))