From: okamsn+emacs-help@protonmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Function value changes after running function?
Date: Fri, 05 Feb 2021 15:34:58 +0000 [thread overview]
Message-ID: <17c2df48-8e9a-4c57-dfbf-b058d2836395@protonmail.com> (raw)
In-Reply-To: <87tuqr431d.fsf@zoho.eu>
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.
next prev parent reply other threads:[~2021-02-05 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-05 2:41 Function value changes after running function? okamsn+emacs-help
2021-02-05 3:16 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-05 15:34 ` okamsn+emacs-help [this message]
2021-02-05 15:48 ` Stefan Monnier
2021-02-05 17:27 ` Okam
2021-02-05 15:24 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17c2df48-8e9a-4c57-dfbf-b058d2836395@protonmail.com \
--to=okamsn+emacs-help@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).