emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master b0049c942b8: bytecomp.el: Warn for `, ' not within backquote


From: Stefan Monnier
Subject: Re: master b0049c942b8: bytecomp.el: Warn for `, ' not within backquote construct
Date: Sat, 16 Mar 2024 11:08:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>   >     In my-foo:
>   >     foo.el:4:7: Warning: ‘,’ called -- perhaps used not within backquote
>     
>   >     In end of data:
>   >     foo.el: Warning: the function ‘,’ is not known to be defined.
>
> The mew warning (shown first above) is better), so I'd suggest disabling
> the old (second) warning for this function.

Reminds me that I have fun definitions for toplevel uses of `,` and `,@`
to propose:

    (defmacro \,@ (exp)
      "Splice EXP's value (a list of Lisp forms) into the code."
      (declare (debug t))
      `(progn ,@(eval exp t)))

    (defmacro \, (exp)
      "Splice EXP's value (a Lisp form) into the code."
      (declare (debug t))
      (eval exp t))

The first one is already available under the names `gnus--,@` and `ses--,@`.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]