help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Function value changes after running function?


From: okamsn+emacs-help
Subject: Re: Function value changes after running function?
Date: Fri, 05 Feb 2021 15:34:58 +0000

On 2/4/21 10:16 PM, Emanuel Berg via Users list for the GNU Emacs text 
editor wrote:
> 
> okamsn+emacs-help wrote:
> 
>>      (defun mu4e:other-path ()
>>        "Return load-path for mu4e.
>>      This assumes that you're on guix."
>>        (loopy (with (regexp "Documents")
>>                     (base-dir (f-full "~/")))
>>               ((list file (directory-files base-dir))
>>                (expr full-path (f-expand file base-dir)))))
> 
> Uhm, what language is that? You get a new Elisp with Guix
> as well?
> 
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
> 
> 

No, I wrote a macro like `cl-loop` here:

https://github.com/okamsn/loopy

I received a bug report that said that the above function would raise an 
error after running a second time here:

https://github.com/okamsn/loopy/issues/17

For some reason, the value returned by `symbol-function` changes after 
the function is invoked the first time. Just using the macro itself does 
not signal an error.




reply via email to

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