From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: Passing result of macroexpand-all as argument to a function Date: Tue, 8 Aug 2023 21:37:39 -0400 Message-ID: References: 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="29396"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 09 03:38:38 2023 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 1qTY9m-0007Uj-8s for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Aug 2023 03:38:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTY9A-0005fy-E8; Tue, 08 Aug 2023 21:38:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTY93-0005fg-AS for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 21:37:53 -0400 Original-Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTY91-0002mB-Rg for help-gnu-emacs@gnu.org; Tue, 08 Aug 2023 21:37:53 -0400 Original-Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-7996fe1c31bso1751577241.3 for ; Tue, 08 Aug 2023 18:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691545070; x=1692149870; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ac02MP1WSLWfUo70nLxda6pQ2It0czVD/AGezQ1xeGs=; b=GZ+hkwgvLxFUMlOr+ywiwx2jahW6qOWvlSJmox5paL759axJEqk0ZdmsLWVo+H6VaM Sk6+XUZubqngLPCPAVk0Z2HCEEdlfXE1XjRGj5Lo2MAiIK0muhL6ankz32Cz/FYoNfbL mKmNy8sLCwyPYVcBUfwKTXsarYuBz1hHjBEnH0OZSm9H5pnxcW3mDkISxUrgcrSChi6W 9PZpNQOL0sp69INRdyTnc7okhkpTHFcQREYVlIlJ10cj4ILQPOUBbzH38i2MsVSL2Q/R Xw411upu+XovMgAlnsu9xAwozQU9I+eMiu/UIphe6udGlxyWi6Mbq/iQNhQNqYpeUt1t IVDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691545070; x=1692149870; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ac02MP1WSLWfUo70nLxda6pQ2It0czVD/AGezQ1xeGs=; b=Muwb6vHBoYavkyak6/gL9TKliNeuRJmQmCP+D3dDmmLVG0r7tHTGQUGvbuX/MqeYtF 6iakKYKNfP6yOH927b7NH4cIKYC8UQh7iIswUfcIpPxBO1ECF/Idc5tea/wUgVgEXCaY 25Cts/k65IVsg6KKdDBkYnOUB9R43WeWgT9WEFPwJhvK4SOK2mO0Sh15RyE3emcz8JD8 zzotV8SfvOLWxO6OJLPzzmhHKyT8lpcSE07Rp1WAa2msZbW1dmL//fVOXTymRRrIt/oW 3sahkw13wz/UBt7ddtMeAT5bXx9bWHeaJhAsGYlhrw8L8sSuL3J6/sohPmzK27YnfNTp 706w== X-Gm-Message-State: AOJu0Yywmk0LadiOhy4lxKT6gFWrMUKhBNOhZvGIny01T8QbDKw14xPR V3M1BXsGX8CCbjKsJpjb8itQbI8jJc6gabmp1OIkYTBI X-Google-Smtp-Source: AGHT+IFYB2p8/gbfAL9pL3pGbiE0m1VLzCoqCFu3eNSt11g36cZaMgueVKaJxKIRS86wmbfjLOz4JhNR7qxYFA/kDuU= X-Received: by 2002:a67:ee1a:0:b0:443:60d7:e1e6 with SMTP id f26-20020a67ee1a000000b0044360d7e1e6mr1738746vsp.10.1691545070449; Tue, 08 Aug 2023 18:37:50 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::92e; envelope-from=prouleau001@gmail.com; helo=mail-ua1-x92e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144699 Archived-At: On Tue, Aug 8, 2023 at 8:22=E2=80=AFPM Heime w= rote: > If I want to pass the result of a macro without final evaluation as > argument > to a function, what kind of structure will it be ? > > I would be using > > (macroexpand-all (this-macro arg)) > > which I would pass as argument to a function. > > 1- What is the problem that you are trying to solve? 2- If you want to pass something to a function and you want that something not evaluated, then: quote it. The function can later evaluate it if it needs to extract the result of the expression, or it can print it using a string formatting function. 3- If #2 is not clear, reading a LISP tutorial will help. Investing time reading on LISP and Emacs Lisp will help a lot. --=20 /Pierre