Subject: bug#27016: possible bug in `defsetf'

From: [email-masked]
Date: Thu, 25 May 2017 06:38:54 -0400

Rafael D Sorkin <[email-masked]> writes:

>  >     (eval-and-compile
>  >       (unless t
>  >         (defsetf foobar setcar)))
>  > 
> One problem is that, as far as I know, common lisp doesn't have
> `eval-and-compile', and my code is meant to work with both elisp
> and common lisp.

Oh, I think `eval-when' should be equivalent:

    (eval-when (compile load eval)
      (unless t
        (defsetf foobar setcar)))