From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Vinicius Jose Latorre <viniciusjl@ig.com.br>
Cc: "GNU Emacs \(devel\)" <emacs-devel@gnu.org>
Subject: Re: Question about byte-compiler warning
Date: Wed, 26 Sep 2007 10:06:17 -0400 [thread overview]
Message-ID: <jwvhclhsex7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <46F95896.4090509@ig.com.br> (Vinicius Jose Latorre's message of "Tue\, 25 Sep 2007 15\:51\:02 -0300")
> Ok, but wasn't the construction:
> (cond
> ((featurep 'xemacs)
> <xemacs-part> )
> (t
> <emacs-part> ))
> recognized by the byte-compiler as a kind of conditional byte-compilation?
It is, but that is not enough. The same problem occurs with
(let ((toto 1))
(defun foo ()))
(defun bar ()
(foo))
In this case, the byte-compiler will also fail to see that `foo' is being
defined and will hence signal "Warning: the function `foo' is not known to
be defined".
> (eval-and-compile
> (cond
> ((featurep 'xemacs) <xemacs-part>)
> (t <emacs-part> ))))
> It could also be used as an alternative construction.
eval-and-compile is ugly.
Stefan
next prev parent reply other threads:[~2007-09-26 14:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-09-26 16:35 ` Vinicius Jose Latorre
2007-09-26 16:30 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvhclhsex7.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=viniciusjl@ig.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.