From: akrl <akrl@sdf.org>
To: help-gnu-emacs@gnu.org
Subject: macro defining function and byte compiler
Date: Sat, 04 May 2019 21:22:14 +0000 [thread overview]
Message-ID: <xjflfzlkj95.fsf@sdf.org> (raw)
Hi all,
I'm trying to byte-compile a file with the following content:
(defmacro xxx ()
`(progn
(defun ,(make-symbol "yyy") ())
(defun zzz ())))
(xxx)
(defun test1 ()
(yyy))
(defun test2 ()
(zzz))
From the *Compile-Log* I see:
Warning: the function ‘yyy’ is not known to be defined.
I'm then wondering why the byte compiler is happy with zzz but not yyy.
I'm certanly missing something here.
Thanks and bests
Andrea
--
akrl@sdf.org
next reply other threads:[~2019-05-04 21:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-04 21:22 akrl [this message]
2019-05-05 2:03 ` macro defining function and byte compiler Noam Postavsky
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjflfzlkj95.fsf@sdf.org \
--to=akrl@sdf.org \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).