From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: okamsn+emacs-help@protonmail.com Newsgroups: gmane.emacs.help Subject: Re: Function value changes after running function? Date: Fri, 05 Feb 2021 15:34:58 +0000 Message-ID: <17c2df48-8e9a-4c57-dfbf-b058d2836395@protonmail.com> References: <87tuqr431d.fsf@zoho.eu> Reply-To: okamsn+emacs-help@protonmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25396"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 05 16:36:24 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l839k-0006Qy-7N for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 16:36:24 +0100 Original-Received: from localhost ([::1]:36160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l839j-0006JT-8A for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 10:36:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l838i-0006HS-UM for help-gnu-emacs@gnu.org; Fri, 05 Feb 2021 10:35:21 -0500 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]:28509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l838b-0007Vp-Gw for help-gnu-emacs@gnu.org; Fri, 05 Feb 2021 10:35:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612539309; bh=Q01XaYNHEofuXvu9n4sCCX8F3JA39wpaXbF0obMN2rA=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=S7LsEVnwv6pqpU9x4QH9FyvV1RC/3y40f9hqT/Jzk6hmZO4vhFIWESsMS1lj6y0of oX76Z+g4OHmLulQVvG5SLOkVzEZoT8HS/ed0xPnGNgnwujFmeCvwmzLEJ5nUYYrrwk wL4XPdiK4lONzQTsxVTS7WyRrhXLlB4Xy410dnTQ= In-Reply-To: <87tuqr431d.fsf@zoho.eu> Received-SPF: pass client-ip=185.70.40.131; envelope-from=okamsn+emacs-help@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127619 Archived-At: On 2/4/21 10:16 PM, Emanuel Berg via Users list for the GNU Emacs text=20 editor wrote: >=20 > okamsn+emacs-help wrote: >=20 >> (defun mu4e:other-path () >> "Return load-path for mu4e. >> This assumes that you're on guix." >> (loopy (with (regexp "Documents") >> =09 (base-dir (f-full "~/"))) >> =09 ((list file (directory-files base-dir)) >> =09 (expr full-path (f-expand file base-dir))))) >=20 > Uhm, what language is that? You get a new Elisp with Guix > as well? >=20 > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal >=20 >=20 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=20 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=20 the function is invoked the first time. Just using the macro itself does=20 not signal an error.