(declare-function 'my-function "file-B" (my-func-arg &optional args))
and here's the definition of
my-function in file B:
;;;###autoload (defun my-function (my-func-arg &optional args) ...)
During compilation, I receive the following warning:
file-A.el:1223:1:Warning: the function ‘my-function’ is not known to be defined.
It was my understanding that when the byte compiler sees the
declare-function form, it assumes from there on that
my-function is defined. Running
M-x check-declare-file on
file-A succeeds, so what's gone wrong?