>>> (eval-when-compile
>>> (require 'cl)
>>> (defvar parse-time-weekdays) ;; parse-time is required where necessary
>>> (defvar parse-time-months)
Why not (require 'parse-time) simply?
This way if parse-time is ever changed to remove parse-time-months, the
byte-compiler will correctly catch it.
> `with-no-warnings' isn't available in Emacs 21.
with-no-warnings should be avoided as much as possible since it can hide any
warning whatsoever without justification. (defvar foo) explains to the
byte-compiler (and the human reader) *why* the warning should be skipped.
> (defun nnimap-date-days-ago (daysago)
> "Return date, in format \"3-Aug-1998\", for DAYSAGO days ago."
> + (require 'parse-time)
> + (defvar parse-time-months)
A (defvar foo) form only makes sense at the toplevel.
Stefan
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel