From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Bug in emacs Date: Mon, 13 Oct 2003 10:28:06 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F8AD296.7010803@yahoo.com> References: <004301c38cd9$2260b1a0$0100a8c0@athlon> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1066062735 21018 80.91.224.253 (13 Oct 2003 16:32:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2003 16:32:15 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 13 18:32:13 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A95cC-0005sx-00 for ; Mon, 13 Oct 2003 18:32:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A95c7-0004qY-C1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Oct 2003 12:32:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A95Zp-0004OF-9m for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:29:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A95ZI-0004EE-IC for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:29:43 -0400 Original-Received: from [199.171.54.245] (helo=ashd1-1.relay.mail.uu.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A95ZH-0004Dn-UF for bug-gnu-emacs@prep.ai.mit.edu; Mon, 13 Oct 2003 12:29:11 -0400 Original-Received: from mail.fu-berlin.de by mr0.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQpkgf16379 for ; Mon, 13 Oct 2003 16:29:03 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 13 Oct 2003 18:28:06 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 13 Oct 2003 18:28:06 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 32 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1066062486 22766883 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5969 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5969 era@iki.fi wrote: > If you have macros which influence the meaning of forms you are > compiling, the macro needs to be loaded before you compile. What you > are reporting seems like a typical symptom of failing to load the > macro in question before compiling. > > A workaround would be to make sure you eval the macro definition > before compiling. > > I'm not sure what the bug really is. Perhaps it would be useful to get > a warning when compiling / evaling something when a macro +is+ in > effect and the file you are compiling is not pulling it in properly? > Then at least you get a hint to fix it while you still can, while > those who do it right will not experience any adverse effects. When the compiler comes across a (function arg ...) form, either the function is defined or it isn't. If it's defined, either as a function or a macro, all is well. If it's not defined, the compiler can't know whether it is a function or a macro and assumes it's a function. A macro can't be "in effect" if it's file was not loaded "properly". The compiler does issue warnings when it encounters an undefined macro/function: While compiling the end of the data in file /home/kevinr/emacs/foo.el: ** the function bar is not known to be defined. -- Kevin Rodgers