Function: ebrowse-show-file-name-at-point
ebrowse-show-file-name-at-point is an interactive and byte-compiled
function defined in ebrowse.el.gz.
Signature
(ebrowse-show-file-name-at-point PREFIX)
Documentation
Show filename in the line point is in.
With PREFIX, insert that many filenames.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
;;; File name display in tree buffers
(defun ebrowse-show-file-name-at-point (prefix)
"Show filename in the line point is in.
With PREFIX, insert that many filenames."
(interactive "p")
(unless ebrowse--show-file-names-flag
(with-silent-modifications
(dotimes (_ prefix)
(let ((tree (ebrowse-tree-at-point))
start
file-name-existing)
(beginning-of-line)
(skip-chars-forward " \t*a-zA-Z0-9_")
(setq start (point)
file-name-existing (looking-at "("))
(delete-region start (line-end-position))
(unless file-name-existing
(indent-to ebrowse-source-file-column)
(insert "(" (or (ebrowse-cs-file
(ebrowse-ts-class tree))
"unknown")
")"))
(ebrowse-set-face start (point) 'ebrowse-file-name)
(beginning-of-line)
(forward-line 1))))))