Function: cedet-gnu-global-expand-filename
cedet-gnu-global-expand-filename is an interactive and byte-compiled
function defined in cedet-global.el.gz.
Signature
(cedet-gnu-global-expand-filename FILENAME)
Documentation
Expand the FILENAME with GNU Global.
Return a list of absolute filenames or nil if none found. Signal an error if GNU global not available.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/cedet-global.el.gz
(defun cedet-gnu-global-expand-filename (filename)
"Expand the FILENAME with GNU Global.
Return a list of absolute filenames or nil if none found.
Signal an error if GNU global not available."
(interactive "sFile: ")
(let ((ans (with-current-buffer (cedet-gnu-global-call (list "-Pa" filename))
(goto-char (point-min))
(if (looking-at "global: ")
(error "GNU Global not available")
(split-string (buffer-string) "\n" t)))))
(when (called-interactively-p 'interactive)
(if ans
(if (= (length ans) 1)
(message "%s" (car ans))
(message "%s + %d others" (car ans)
(length (cdr ans))))
(error "No file found")))
ans))