unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: esr@thyrsus.com
Cc: emacs-devel@gnu.org
Subject: Re: How do I clean up "might not be defined" wrnings?
Date: Sat, 22 Nov 2014 14:53:38 +0900	[thread overview]
Message-ID: <87a93ju6fx.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <20141121220357.GA24313@thyrsus.com>

Eric S. Raymond writes:
 > Tassilo Horn <tsdh@gnu.org>:
 > > 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.






  reply	other threads:[~2014-11-22  5:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 19:28 How do I clean up "might not be defined" wrnings? Unknown
2014-11-21 21:58 ` Tassilo Horn
2014-11-21 22:03   ` Eric S. Raymond
2014-11-22  5:53     ` Stephen J. Turnbull [this message]
2014-11-21 22:14 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a93ju6fx.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=esr@thyrsus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).