GNU bug report logs - #51140
28.0.50; cl-letf appears not to work with native-comp (at least for process-exit-status and other builtins)

Previous Next

Package: emacs;

Reported by: Robert Irelan <rirelan <at> gmail.com>

Date: Mon, 11 Oct 2021 22:38:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 51140 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Robert Irelan <rirelan <at> gmail.com>
Cc: 51140 <at> debbugs.gnu.org
Subject: Re: bug#51140: 28.0.50; cl-letf appears not to work with
 native-comp (at least for process-exit-status and other builtins)
Date: Tue, 12 Oct 2021 04:30:46 +0200
Robert Irelan <rirelan <at> gmail.com> writes:

> (defun +ivy--always-return-zero-exit-code-a (fn &rest args)
>   (cl-letf* (((symbol-function 'process-exit-status-orig)
>               (symbol-function 'process-exit-status))
>              ((symbol-function 'process-exit-status)
>               (lambda (_proc)
                         ^^^^^
>                 (let ((code (process-exit-status-orig proc)))
                                                        ^^^^

I don't know about native compilation, I just found this free variable
problem when compiling your defun normally.  You may want to correct
your recipe.

Michael.




This bug report was last modified 2 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.