Stephen Leake writes: > (defun ada-find-file (filename) > ;; we assume compliation-search-path is set, either by an > ;; ada-mode project, or by some other means. > ;; FIXME: option to filter with ada-*-suffixes? > (interactive (list (completing-read "File: " > (apply-partially > 'locate-file-completion-table > compilation-search-path nil)))) > (find-file (locate-file filename compilation-search-path)) > )
This seems realy great but relies on compilation-search-path to be populated. The problem my guinea pig has appears before this happens: before any project file is loaded or any compilation has taken place. I've found file-cache to be a nice answer as it does not rely on anything but $ADA_INCLUDE_PATH, which in our workflow is set before emacs is launched. -- Ludovic Brenta. _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
