From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: How do I clean up "might not be defined" wrnings? Date: Sat, 22 Nov 2014 14:53:38 +0900 Message-ID: <87a93ju6fx.fsf@uwakimon.sk.tsukuba.ac.jp> References: <20141121192849.B55E1382F6B@snark.thyrsus.com> <87h9xs8bd6.fsf@thinkpad-t440p.tsdh.org> <20141121220357.GA24313@thyrsus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1416635652 3913 80.91.229.3 (22 Nov 2014 05:54:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 05:54:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: esr@thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 22 06:54:05 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xs3e1-0005EI-1t for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2014 06:54:05 +0100 Original-Received: from localhost ([::1]:43901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs3e0-0000zs-Cp for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2014 00:54:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs3di-0000zl-Sq for emacs-devel@gnu.org; Sat, 22 Nov 2014 00:53:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xs3dd-0007A9-0M for emacs-devel@gnu.org; Sat, 22 Nov 2014 00:53:46 -0500 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:48267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs3dc-0007A1-N1 for emacs-devel@gnu.org; Sat, 22 Nov 2014 00:53:40 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTPS id 100FF1C39FF; Sat, 22 Nov 2014 14:53:39 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id D4D7F1A2892; Sat, 22 Nov 2014 14:53:38 +0900 (JST) In-Reply-To: <20141121220357.GA24313@thyrsus.com> X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177968 Archived-At: Eric S. Raymond writes: > Tassilo Horn : > > esr@snark (Eric S. Raymond) writes: > > > > > I've started a significant refactoring and simplification of the VC > > > code. This has involved moving functions to different files, which is > > > causing "functions might not be defined" warnings. Have you done a bootstrap? > > > What is the approved way to prevent these None. Most uses of declare-function are crocks committed by criminally lazy programmers.[1] IMHO FWIW and you have a right to my opinion, which is invaluable. :-) > > > or clean them up? As Lars says. In particular, you should autoload the entry points, and require libraries containing functions called by functions you are defining. Steve Footnotes: [1] `declare-function' should be used only when the function might not be available at runtime.