From: "Wedler, Christoph" <christoph.wedler@sap.com>
Subject: RE: [Bug] (defun foo) during compilation defines `foo' as 0-arg ` igno re'
Date: Tue, 8 Apr 2003 19:57:15 +0200 [thread overview]
Message-ID: <67B8CED503F3D511BB9F0008C75DAD6605485570@dewdfx17> (raw)
>> If you evaluate (defun foo), you get the error
>> (wrong-number-of-arguments #<subr defun> 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
next reply other threads:[~2003-04-08 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 17:57 Wedler, Christoph [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-07 17:27 [Bug] (defun foo) during compilation defines `foo' as 0-arg `igno re' Wedler, Christoph
2003-04-07 19:55 ` Kai Großjohann
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=67B8CED503F3D511BB9F0008C75DAD6605485570@dewdfx17 \
--to=christoph.wedler@sap.com \
/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.