Opening compile.el
and then searching with C-s (funcall
jumped me to:
(setq file (if (functionp file) (funcall file)
(match-string-no-properties file))))
which seems to be the relevant spot and shows that the functions is indeed called with no arguments and that the match-data
is still very much valid, so you can extract the file name with (match-string <the-file-sub-group>)
.