emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declare-function in files from Gnus (hashcash.el, imap.el)


From: Dan Nicolaescu
Subject: Re: declare-function in files from Gnus (hashcash.el, imap.el)
Date: Sat, 01 Dec 2007 10:54:03 -0800

Reiner Steib <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]