Re: message in *Compile Log* buffer

David Kastrup <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Ralf Angeli <[email protected]> writes:

> * David Kastrup (2005-01-19) writes:
>
>> define-minor-mode is a Lisp macro in `easy-mmode'.
>>
>> That means that we need something like
>> (eval-when-compile (require 'easy-mmode))
>>
>> so that the macro is available at compile time.
>>
>> Remind me: what kind of code depended on it?
>
> I'm sorry, I don't know what you mean.

I'm probably confusing this with a different bug report.

> The problem is `minor-mode-list'.  And this variable is only present
> in CVS Emacs, not in Emacs 21.3 and earlier and not in XEmacs.  I
> thought that checking for `(boundp 'minor-mode-list)' would suffice
> to silence the byte compiler, but in some cases obviously it isn't.

Well, in recent versions of Emacs CVS, it should be sufficient.  But
it is not the recent versions that are missing minor-mode-list.

What you can do is just

(defvar minor-mode-list)

at the top of the file.  That has no side effects except for silencing
the byte compiler.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.