From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: suppressing byte-compiler warnings about undefined functions Date: Sat, 10 Nov 2007 12:54:54 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1194717459 32059 80.91.229.12 (10 Nov 2007 17:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Nov 2007 17:57:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 10 18:57:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IquaU-0007HI-Jc for ged-emacs-devel@m.gmane.org; Sat, 10 Nov 2007 18:57:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IquaI-0004V2-Se for ged-emacs-devel@m.gmane.org; Sat, 10 Nov 2007 12:57:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IquXp-000102-9y for emacs-devel@gnu.org; Sat, 10 Nov 2007 12:54:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IquXn-0000xR-NA for emacs-devel@gnu.org; Sat, 10 Nov 2007 12:54:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IquXn-0000x5-H7 for emacs-devel@gnu.org; Sat, 10 Nov 2007 12:54:55 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IquXn-0001Ph-2K for emacs-devel@gnu.org; Sat, 10 Nov 2007 12:54:55 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IquXm-0000PY-M9; Sat, 10 Nov 2007 12:54:54 -0500 In-reply-to: (message from Glenn Morris on Fri, 09 Nov 2007 19:55:08 -0500) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82913 Archived-At: I haven't yet written the function to check that functions are actually defined in the specified files, but I imagine it would be straightforward. It is probably nontrivial to arrange to find all the `declare-function' calls in Emacs and check them. I doubt it requires deep thought, but it should to be implemented before we install this. ;; would be useful to delay this warning until all have been ;; compiled. A: Yes! b-c-u-f might contain dross from a ;; previous byte-compile. ! (setq byte-compile-unresolved-functions nil ! byte-compile-declared-functions nil) Why clear byte-compile-declared-functions at the end of compilation? That would cause strange results if there is an error in compilation. The reliable way is to do it at the beginning of compilation. Or let-bind the variable in the right places.