[Top][All Lists]

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

Re: How is the 21.2.90 pretest going?

From: Stefan Monnier
Subject: Re: How is the 21.2.90 pretest going?
Date: Fri, 11 Oct 2002 15:13:26 -0400

>     > In those file I can read a comment like this:
>     >  ;;; Note this definition must be at the end of the file, because
>     >  ;;; `define-minor-mode' actually calls the mode-function if the
>     >  ;;; associated variable is non-nil, which requires that all needed
>     >  ;;; functions be already defined.  [This is arguably a bug in d-m-m]
>     >  ;;;###autoload
>     >  (define-minor-mode auto-image-file-mode
>     These comments have been obsolete since Emacs-21.1.
> I thought we decided define-minor-mode should still do this.
> What makes the comments obsolete?

They complained about the fact that the `define-minor-mode' code
had to be at the end because it ran (<mode> 1) if the variable
was non-nil.   I fixed it by using `eval-after-load' such that even
if the `define-minor-mode' code is in the middle of the file,
the (<mode> 1) call is only made at the end of the file.


reply via email to

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