emacs-devel
[Top][All Lists]
Advanced

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

Question about byte-compiler warning


From: Vinicius Jose Latorre
Subject: Question about byte-compiler warning
Date: Tue, 25 Sep 2007 12:38:23 -0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4

Hi,


Create a test file like:

test.el:
========
(cond
((featurep 'xemacs)
 (defun bar ()
   (message "bar XEmacs"))
 (defun foo ()
   (bar)))
(t
 (defun bar ()
   (message "bar Emacs"))
 (defun foo ()
   (bar))))

(defun foobar ()
 (interactive)
 (foo))
========


Now byte-compile the file above.

The byte-compiler gives the following warning:

   In end of data:
test.el:17:1:Warning: the following functions are not known to be defined:
       bar, foo


But aren't these functions (bar and foo) defined using cond construct?

Why does the byte-compiler give this warning?


Vinicius





reply via email to

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