all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Pip Cet <pipcet@gmail.com>
Cc: 41381@debbugs.gnu.org
Subject: bug#41381: 28.0.50; Can't compile file containing a local pcase macro
Date: Sat, 6 Jun 2020 21:11:26 +0200	[thread overview]
Message-ID: <CAArVCkR6dmo58FjSmLfGaW-kdw8kGeNUkm1L0PopYqFdRVv1HA@mail.gmail.com> (raw)
In-Reply-To: <87pnaf6caf.fsf@gmail.com>

Am Mi., 3. Juni 2020 um 23:59 Uhr schrieb Pip Cet <pipcet@gmail.com>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
> > $ cat test.el
> > ;;; -*- lexical-binding: t; -*-
> > (pcase-defmacro test () '_)
> > (defun test () (pcase nil ((test))))
> >
> > $ emacs -Q -batch -l bytecomp -f batch-byte-compile test.el
> >
> > In toplevel form:
> > test.el:3:1: Error: Symbol’s function definition is void: test--pcase-macroexpander
> >
> > It works if the pcase macro is surrounded with `eval-when-compile', but
> > that shouldn't be necessary I think.
>
> Wouldn't it be better to surround the pcase-defmacro call with
> (eval-and-compile ...)?

How about neither? This should work without any "eval-when-..." form.





  reply	other threads:[~2020-06-06 19:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 21:23 bug#41381: 28.0.50; Can't compile file containing a local pcase macro Philipp Stephani
2020-06-03 21:59 ` Pip Cet
2020-06-06 19:11   ` Philipp Stephani [this message]
2020-06-07  9:57     ` Michael Heerdegen
2021-07-31 16:34 ` Lars Ingebrigtsen
2021-07-31 16:39   ` Philipp

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=CAArVCkR6dmo58FjSmLfGaW-kdw8kGeNUkm1L0PopYqFdRVv1HA@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=41381@debbugs.gnu.org \
    --cc=pipcet@gmail.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.