From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Question about byte-compiler warning Date: Wed, 26 Sep 2007 10:06:17 -0400 Message-ID: References: <46F92B6F.2000101@ig.com.br> <46F95896.4090509@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190815633 6085 80.91.229.12 (26 Sep 2007 14:07:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2007 14:07:13 +0000 (UTC) Cc: "GNU Emacs \(devel\)" To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 16:07:09 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IaXXN-0007t0-5A for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 16:06:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IaXXJ-0002oE-P5 for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 10:06:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IaXWv-0002Pq-8s for emacs-devel@gnu.org; Wed, 26 Sep 2007 10:06:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IaXWt-0002OA-KJ for emacs-devel@gnu.org; Wed, 26 Sep 2007 10:06:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IaXWt-0002Nv-64 for emacs-devel@gnu.org; Wed, 26 Sep 2007 10:06:19 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IaXWs-0002kY-Jg for emacs-devel@gnu.org; Wed, 26 Sep 2007 10:06:18 -0400 Original-Received: from pastel.home ([74.12.208.240]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070926140617.ZDH7990.tomts36-srv.bellnexxia.net@pastel.home> for ; Wed, 26 Sep 2007 10:06:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9A3D883C4; Wed, 26 Sep 2007 10:06:17 -0400 (EDT) In-Reply-To: <46F95896.4090509@ig.com.br> (Vinicius Jose Latorre's message of "Tue\, 25 Sep 2007 15\:51\:02 -0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79905 Archived-At: > Ok, but wasn't the construction: > (cond > ((featurep 'xemacs) > ) > (t > )) > 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) ) > (t )))) > It could also be used as an alternative construction. eval-and-compile is ugly. Stefan