~abcdw/rde-discuss

1

interactions guile-emacs #'

Details
Message ID
<87edwzp5h6.fsf@ngraves.fr>
DKIM signature
missing
Download raw message
Just a quick note on something it took me quite some time to figure out:
#' passed in a list becomes the guile function syntax, which is
undefined in elisp.

A workaround is to use (lambda (x) (my-func x)) instead of #'my-func. Is
it the right thing to do in this case ?

-- 
Best regards,
Nicolas Graves
Details
Message ID
<87wnaou9fc.fsf@trop.in>
In-Reply-To
<87edwzp5h6.fsf@ngraves.fr> (view parent)
DKIM signature
pass
Download raw message
On 2022-08-29 15:03, Nicolas Graves wrote:

> Just a quick note on something it took me quite some time to figure out:
> #' passed in a list becomes the guile function syntax, which is
> undefined in elisp.

Hi Nicolas!  Yep, that's a known issues and I didn't have time to
workaround it somehow yet, so I just use 'function-name instead of
#'function-name, IIRC it just skip byte compile check for function-name
exitstance and I consider it as not a big deal, but let me know if I
miss something important.

>
> A workaround is to use (lambda (x) (my-func x)) instead of
> #'my-func. Is it the right thing to do in this case ?

A little verbose, but probably it solves the issue mentioned above.

I would like to revisit elisp serialization to make it possible to use
#' without workarounds, but I don't have enough free resources to do so
right now.

-- 
Best regards,
Andrew Tropin
Reply to thread Export thread (mbox)