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

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 12 May 2011 02:37:01 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
8647: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8647
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#8647: since lexical merge, declare-function in subr.el no longer works
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Wed, 11 May 2011 22:36:43 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Stefan Monnier wrote:

> Another way to get that result is to change the place where we add
> elements to byte-compile-macro-environment (so as not to add it if it's
> in byte-compile-initial-macro-environment),

I like that idea better. Done.

Subject: since lexical merge, declare-function in subr.el no longer works
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 10 May 2011 18:29:20 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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.