GNU bug report logs -
#44660
[feature/native-comp] defalias to macro in compiled elisp seems to not work in smartparens
Previous Next
Reported by: Jim Myhrberg <contact <at> jimeh.me>
Date: Sun, 15 Nov 2020 18:16:02 UTC
Severity: normal
Done: Andrea Corallo <akrl <at> sdf.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
After the following pull request was merged:
https://github.com/Fuco1/smartparens/pull/958
I started getting this error:
Error running timer ‘sp-show--pair-function’: (invalid-function
sp--while-no-input)
The offending code seems to be:
(defalias 'sp--while-no-input 'while-no-input)
And then later the call to "sp--while-no-input" within the
"sp-show--pair-function" function. If I manually eval the
"sp-show--pair-function" so it's no longer a natively compiled
function, things start working again.
For now in my personal config (which is not native-compiled), I've
resorted to this work-around which seems to work:
(defun sp--while-no-input (&rest body)
(eval (append '(while-no-input) body)))
Thanks again :)
This bug report was last modified 4 years and 182 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.