From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: byte compiler warnings when bootstrapping Date: Sun, 21 Oct 2007 09:33:58 -0700 Message-ID: <200710211633.l9LGXw0O005300@oogie-boogie.ics.uci.edu> References: <200710210738.l9L7cIGs012673@oogie-boogie.ics.uci.edu> <200710211558.l9LFwIBv003882@oogie-boogie.ics.uci.edu> <856410a1h1.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192991877 31932 80.91.229.12 (21 Oct 2007 18:37:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2007 18:37:57 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 21 20:37:58 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 1IjfgN-0006yN-VO for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2007 20:37:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjfgG-000313-9f for ged-emacs-devel@m.gmane.org; Sun, 21 Oct 2007 14:37:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ijffr-0002Wj-FA for emacs-devel@gnu.org; Sun, 21 Oct 2007 14:37:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ijffp-0002U9-K6 for emacs-devel@gnu.org; Sun, 21 Oct 2007 14:37:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ijffp-0002Tu-F4 for emacs-devel@gnu.org; Sun, 21 Oct 2007 14:37:17 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IjfLg-0007qM-Q2; Sun, 21 Oct 2007 14:16:28 -0400 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ijdo9-00005k-Rv; Sun, 21 Oct 2007 12:37:46 -0400 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id l9LGXw0O005300; Sun, 21 Oct 2007 09:33:58 -0700 (PDT) In-Reply-To: <856410a1h1.fsf@lola.goethe.zz> (David Kastrup's message of "Sun\, 21 Oct 2007 18\:15\:06 +0200") Original-Lines: 24 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by mx20.gnu.org: Solaris 9 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:81386 Archived-At: David Kastrup writes: > Dan Nicolaescu writes: > > > Stefan Monnier writes: > > > > > > With that and with adding a few more (eval-when-compile (require 'blah)) > > > > > > What is the use of (eval-when-compile (require 'blah)) in this context? > > > I expect it's the wrong solution. > > > > When the number of warnings for undefined functions is too high it > > might be better to just require the package that defines them. But you > > might be right... > > But how do the functions actually get defined at runtime? Autoloading (defun foo () (info) (Info-read-node-name) <- this gets a byte compiler a warning, but it is defined at runtime.