Function: speedbar-line-file

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

Signature

(speedbar-line-file &optional P)

Documentation

Retrieve the file or whatever from the line at point P.

The return value is a string representing the file. If it is a directory, then it is the directory name.

Source Code

;; Defined in /usr/src/emacs/lisp/speedbar.el.gz
(defun speedbar-line-file (&optional p)
  "Retrieve the file or whatever from the line at point P.
The return value is a string representing the file.  If it is a
directory, then it is the directory name."
  (save-match-data
    (save-restriction
      (widen)
      (let ((f (speedbar-line-text p)))
	(if f
	    (let* ((depth (string-to-number (match-string 1)))
		   (directory (speedbar-line-directory depth)))
	      (if (file-exists-p (concat directory f))
		  (concat directory f)
		nil))
	  nil)))))