all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ralf Angeli <angeli@caeruleus.net>
Cc: Glenn Morris <rgm@gnu.org>, emacs-devel@gnu.org
Subject: Re: declare-function from included file
Date: Wed, 19 Mar 2008 15:30:31 -0400	[thread overview]
Message-ID: <jwvtzj2qzv8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <874pb2zgn0.fsf@photon.caeruleus.net> (Ralf Angeli's message of "Wed, 19 Mar 2008 19:57:07 +0100")

> Personally I'm not bothered too much by them but since we are talking
> about code which is part of Emacs this is likely not an option.

Silencing incorrect warnings is a good thing.  But it's not a priority
and most importantly, is less important than keeping code simple.

So the `fset' hack is a really bad idea, just like the tramp-let-maybe.
Better live with warnings than with such contraptions.

Adding `declare-function' is not that big a problem since it doesn't
make code more complex, but if you don't like it, don't use it.

This said, if you have a need for *many* declare-function, then maybe
the problem is elsewhere and you should report it (maybe Emacs could be
more clever about how to detect when a warning is needed).


        Stefan




  reply	other threads:[~2008-03-19 19:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-16 18:23 declare-function from included file Ralf Angeli
2008-03-19  0:47 ` Glenn Morris
2008-03-19 18:57   ` Ralf Angeli
2008-03-19 19:30     ` Stefan Monnier [this message]
2008-03-19 20:32       ` Ralf Angeli
2008-03-19 20:42         ` Dan Nicolaescu
2008-03-19 21:00           ` Ralf Angeli
2008-03-19 21:19             ` Dan Nicolaescu
2008-03-19 21:45               ` Ralf Angeli
2008-03-19 22:18                 ` Dan Nicolaescu

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

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

  git send-email \
    --in-reply-to=jwvtzj2qzv8.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=angeli@caeruleus.net \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.