Note that this is useful for modes which report errors in text from open buffers, which may have no associated file. The issue is this line in `compilation-get-file-structure’:
Or FILE can also be a function that returns (FILENAME) or (RELATIVE-FILENAME . DIRNAME). In the former case, FILENAME may be relative or absolute, or it may be a buffer.
(if (file-name-absolute-p filename) (setq filename (concat comint-file-name-prefix filename))) |