From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65835 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: declare-function in files from Gnus (hashcash.el, imap.el) Date: Sat, 01 Dec 2007 10:54:03 -0800 Message-ID: <200712011854.lB1Is3Sx022460@oogie-boogie.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196535285 877 80.91.229.12 (1 Dec 2007 18:54:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 18:54:45 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 19:54:51 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 1IyXUH-0008KI-BO for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 19:54:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyXU1-0000lg-E1 for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2007 13:54:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyXTy-0000jr-TB for emacs-devel@gnu.org; Sat, 01 Dec 2007 13:54:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyXTx-0000fz-05 for emacs-devel@gnu.org; Sat, 01 Dec 2007 13:54:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyXTw-0000fw-TF for emacs-devel@gnu.org; Sat, 01 Dec 2007 13:54:28 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyXTt-0007op-FM; Sat, 01 Dec 2007 13:54:25 -0500 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 lB1Is3Sx022460; Sat, 1 Dec 2007 10:54:03 -0800 (PST) In-Reply-To: (Reiner Steib's message of "Sat, 01 Dec 2007 19:35:52 +0100") Original-Lines: 27 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 monty-python.gnu.org: Solaris 9 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:84436 gmane.emacs.gnus.general:65835 Archived-At: Reiner Steib writes: > On Sat, Dec 01 2007, Glenn Morris wrote: > > > Reiner Steib wrote: > > > >> Maybe we could add (defalias 'declare-function 'ignore ...) (like in > >> Emacs 22.2) to `gnus/lisp/dgnushack.el' (in Gnus). > > > > I think that's the best idea. > > I'm not so sure. Several problems come to my mind: > > - `dgnushack.el' itself is considered harmful by some people. Instead > of compiling all lisp files at once, the make procedure should maybe > call "emacs ... -f batch-byte-compile FILE.el" for each file as the > Makefile in Emacs does. > > - When compiling with Emacs 22.1 (or Emacs 21) even with `ignore', I > get additional bogus warnings: > > /usr/bin/emacs-22.1 -Q -batch --eval \ > "(unless (fboundp 'declare-function) (defalias 'declare-function 'ignore))" \ (unless (fboundp 'declare-function) (defmacro declare-function (&rest args))) should work better.