Subject: bug#8647: since lexical merge, declare-function in subr.el no longer works

From: Glenn Morris <[email-masked]>
Date: Tue, 10 May 2011 18:29:20 -0400

Package: emacs
Version: 24.0.50
Severity: minor

Since the merge of the lexical branch, `declare-function' statements in
subr.el no longer have the desired effect. Eg compiling subr.el warns:

In end of data:
subr.el:4015:1:Warning: the function `w32-shell-dos-semantics' is not
  known to be defined.

despite the presence of

  (declare-function w32-shell-dos-semantics "w32-fns" nil)

in the file.