From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eB02B1PnrGAUtAAAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 14:02:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wNXaAlPnrGCKcwAAbx9fmQ (envelope-from ) for ; Tue, 25 May 2021 12:02:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E6BD12A62 for ; Tue, 25 May 2021 14:02:26 +0200 (CEST) Received: from localhost ([::1]:35216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llVlP-000246-Re for larch@yhetil.org; Tue, 25 May 2021 08:02:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llVeV-00032F-Eh for emacs-orgmode@gnu.org; Tue, 25 May 2021 07:55:15 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:35595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llVeT-00054j-OO for emacs-orgmode@gnu.org; Tue, 25 May 2021 07:55:15 -0400 Received: by mail-lj1-x234.google.com with SMTP id f12so37743063ljp.2 for ; Tue, 25 May 2021 04:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=d0wsCzQceE/pJYQV8CsjT896+GA0RgntS/F14GEZM28=; b=NgxI7eIpCmxfVHHsc+avG5JpvfAdk+8OLIbonE8ITkS70zMm+7UPwqLVaKcjo2tXdK WZWVwRagJFdPby3KIg2Lnq3NC05I4QbWFFtuRVbThUJLtsET3DGX5XrD//kX59rJ9Eud vnupDyVlAKnxYOnLuWwW+NGDhGFP8Xbav+XGl5fta5z2oiabl7ymRV0FEzWsH2+PUCkN 9GpYXxCKoRuEDIiWR9XE8aVLlfzKQ3WL9qBqZ2zjYgDaqFcVrG6daJ/JCXDVt5oyVDeG sbBN60CO9nBTJRhdWsuF0UuforJ0I6uyOFMqoRqI65EJStlJ1ZJizGd7jmfTc9UxPC8u lseQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=d0wsCzQceE/pJYQV8CsjT896+GA0RgntS/F14GEZM28=; b=eiu7Fl1kjMAawio9+sgPZ9hu23ezYxTKNhDWf7VxORSnCVQOEyKzGaO4Pjh2xLQlIq 1P96CojuVZCSsNNx/TsX+eAIXTCxycOnOFR1/JWA2OMUbLIjPfU3eG9wl87jqm37isg+ mdGFNftbvnaEF2bH8aGh/KrGagilRgutUbDjMzd6t4ggAXuqEusxdqzgCojkvbDSup4R XmEQJhnJGm/XKkM5zZURJUn/KlfTkkR561sscOXxG+nRqnB5bvLe4pamiMvL/Am1+dAw ue5QvEZInbXbH3mpYmUCGZOF9ToAXLcYrswYqgEc2TFyWU7nUn9tIi4Rs2quCwaZicNK RxXg== X-Gm-Message-State: AOAM532/7SIOzaquaiwa6/3V6bVYqcY4rBDNd8LHz5LrQfKraRLRaWDD zIv2JctZ0FyNZvzzbhMZQ9bwySh5sEaUhjmZLFg= X-Google-Smtp-Source: ABdhPJxNhJFHg6b96I2AEsnH6txdDIGjxbAeu9g4HQydT8/EPzPSeVl6lNzDLLHJUaeXBHlFZowSSh2c0V7aqeikYYc= X-Received: by 2002:a2e:a41c:: with SMTP id p28mr18559187ljn.427.1621943711750; Tue, 25 May 2021 04:55:11 -0700 (PDT) MIME-Version: 1.0 References: <87a6oj6uqu.fsf@nicolasgoaziou.fr> In-Reply-To: <87a6oj6uqu.fsf@nicolasgoaziou.fr> From: Michael Dauer Date: Tue, 25 May 2021 13:55:00 +0200 Message-ID: Subject: Re: BUG: eval macros not working anymore To: Michael Dauer , emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000c8dc7505c32632fd" Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=mick.dauer@gmail.com; helo=mail-lj1-x234.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621944146; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=d0wsCzQceE/pJYQV8CsjT896+GA0RgntS/F14GEZM28=; b=NqrBPVGGNnd1AfhkYwW1moCi1C9T6bta736lh4df3iLW+Kc0+Ta6NpFSwRxdEKGTIEZ5jc V1mJ8PbIc45yNjBw1Z34x9IWDntNvPWYCYCVraylnoIARggWV9jjlaP6oVdeFE1MlGiyPM XelckSZfOnVNBYTGoV9MjG1spnqPZS2JveKpGezkx7OPRVd4bGFCe1KWT5yCfNVrgJpyFG fnWtJHwG7hgc99SDQwH4snuPfwhf6gCapqnWher+eG5E+ri8ZZ1vdjUaaDKC972jablj5N Gd2HdqiKygsnl0lJhM6K4QZ9mcpCddE986Ed4ZRoGQ3cpAOkucqgUwaAnmHhFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621944146; a=rsa-sha256; cv=none; b=nwSeY8zTrfc0J0Hj/7CNT55gQAN+qk2q6alH9UnyohToh3rMypitDzZ28N/s1TotmIjOnK XjUN5QMkTABj7dpThbb0w/izPh4j5K5IV98lyc19gEOkc9a4oII0CtYQ5yAOaqwKLnDE0S DukhEvivZE7cXLeCLXLUrqD7x16Lm6CP0qWANqd/cCzhD39z6Xas7zp9NsHeJ/sXT+QdDv h/y2ZYK7QElAzTITg0u6SBD7Q+fkDPS555tS0N1TPvTVb2Ee2edGB6Zrn0IiOh9YMnfYXB iCWztTqZPCSRftI1xjZ4xgifDCC83VALWTbCJs36bYDh+SYBsewwz4t83Xl6rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NgxI7eIp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NgxI7eIp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5E6BD12A62 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: pmcl+Ip2dd/3 --000000000000c8dc7505c32632fd Content-Type: text/plain; charset="UTF-8" How do you do this with a #+macro keyword with arguments? The old implementation checked the string for a "(eval" prefix. Nicolas Goaziou schrieb am Di., 25. Mai 2021, 11:14: > Hello, > > Michael Dauer writes: > > > at least not compatible with before. > > > > Probably caused by commit 8abdbbee395f284f2262a89187d662eaf40080b1. > > > > originally correct macro ("macroA" . "(eval > > do-something-dynamically-at-macro-expansion)") > > > > How should this be achieved now? (functionp "any-string") is nil > > I think you need to write > > ("macroA" . (lambda (&rest _) > (do-something-dynamically-at-macro-expansion))) > > Regards, > -- > Nicolas Goaziou > --000000000000c8dc7505c32632fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How do you do this with a #+macro keyword with arguments?=

The old implementation checke= d the string for a "(eval" prefix.=C2=A0

Nicolas Goaziou <= ;mail@nicolasgoaziou.fr> s= chrieb am Di., 25. Mai 2021, 11:14:
Hello,

Michael Dauer <mick.dauer@gmail.com> writes:

> at least not compatible with before.
>
> Probably caused by commit 8abdbbee395f284f2262a89187d662eaf40080b1. >
> originally correct macro ("macroA" . "(eval
> do-something-dynamically-at-macro-expansion)")
>
> How should this be achieved now? (functionp "any-string") is= nil

I think you need to write

=C2=A0 ("macroA" . (lambda (&rest _) (do-something-dynamicall= y-at-macro-expansion)))

Regards,
--
Nicolas Goaziou
--000000000000c8dc7505c32632fd--