emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Change in bytecomp.el breaks Gnus


From: Katsumi Yamaoka
Subject: Re: Change in bytecomp.el breaks Gnus
Date: Sun, 14 Nov 2004 09:14:41 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

>>>>> In <address@hidden> 
>>>>>   Stefan <address@hidden> wrote:

>> (if (fboundp 'message) (defalias 'foo 'message))
>> (defun bar () (foo "Hello World"))

>> In end of data:
>> test5.el:2:1:Warning: the function `foo' is not known to be defined.

> That's normal and correct.
> If `message' is not bound, then `foo' won't be bound either, so `foo' is not
> guaranteed to be defined.

Is also the following case normal and correct?

(if (fboundp 'message)
    (defalias 'foo 'message)
  (defalias 'foo 'ignore))
(defun bar () (foo "Hello World"))

In end of data:
test6.el:4:1:Warning: the function `foo' is not known to be defined.

If it is normal, we will have to use `eval-and-compile' to
surround similar `defalias' forms in many places.




reply via email to

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