From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Wedler, Christoph" Newsgroups: gmane.emacs.devel Subject: RE: [Bug] (defun foo) during compilation defines `foo' as 0-arg ` igno re' Date: Tue, 8 Apr 2003 19:57:15 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <67B8CED503F3D511BB9F0008C75DAD6605485570@dewdfx17> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1049825153 14751 80.91.224.249 (8 Apr 2003 18:05:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2003 18:05:53 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 08 20:05:49 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 192xQi-0003S6-00 for ; Tue, 08 Apr 2003 20:02:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 192xUp-00004y-00 for ; Tue, 08 Apr 2003 20:06:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192xP3-0001Sq-00 for emacs-devel@quimby.gnus.org; Tue, 08 Apr 2003 14:01:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192xOX-00015I-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 14:00:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192xNg-0000Or-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 13:59:36 -0400 Original-Received: from smtpde02.sap-ag.de ([155.56.68.170]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192xLV-0007Mz-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 13:57:21 -0400 Original-Received: from sap-ag.de (smtpde02) by smtpde02.sap-ag.de (out) with ESMTP id TAA03081; Tue, 8 Apr 2003 19:57:33 +0200 (MESZ) Original-To: "'kai.grossjohann@gmx.net'" , emacs-devel@gnu.org X-Mailer: Internet Mail Service (5.5.2656.59) X-SAP: out X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13032 >> If you evaluate (defun foo), you get the error >> (wrong-number-of-arguments # 1) > There has been talk about making (defun foo) behave analogously to > (defvar foo), but at the moment this is not so, AFAIK. Hm, maybe my message was a bit unclear. The point of my bug report (otherwise, it would be a feature request) was that (defun foo) does NOT SIGNAL an ERROR when used inside `eval-when-compile'. > You can require the package where foo is defined. Then it would be as bad as (defun foo) inside `eval-when-compile'... > In Tramp, I have the problem with compatibility code, and there I > fool the Lisp interpreter by doing (funcall 'foo ...), but that's > probably not the right approach. At least the XEmacs byte compile would still warn about `foo' not being defined... - Christoph