unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Question about byte-compiler warning
@ 2007-09-25 15:38 Vinicius Jose Latorre
  2007-09-25 17:13 ` Stefan Monnier
  2007-09-26 16:30 ` Richard Stallman
  0 siblings, 2 replies; 6+ messages in thread
From: Vinicius Jose Latorre @ 2007-09-25 15:38 UTC (permalink / raw)
  To: GNU Emacs (devel)

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-26 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 15:38 Question about byte-compiler warning Vinicius Jose Latorre
2007-09-25 17:13 ` Stefan Monnier
2007-09-25 18:51   ` Vinicius Jose Latorre
2007-09-26 14:06     ` Stefan Monnier
2007-09-26 16:35       ` Vinicius Jose Latorre
2007-09-26 16:30 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).