From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SLmwNID5V2Y2kQAAqHPOHw:P1 (envelope-from ) for ; Thu, 30 May 2024 05:58:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SLmwNID5V2Y2kQAAqHPOHw (envelope-from ) for ; Thu, 30 May 2024 05:58:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ifi.uio.no header.s=key2309 header.b=Mc3EBDU8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717041536; 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=uSdKMM9yv1BwQrvN3YgkzlsugHh3VyaIww7TRWJSDdk=; b=D3hdZfT8g9Itp3hxz+G1ivjzA2FTv+VGTrU4rBs6GyTDYXkTjppamleo2kQ9hSPImmnbiu 0/UBZFma3Vh+mGrBQgTu8migVtYYgZlWsTePuHSWHAnFz6F7yeTilY45fNtzT6sBWABzR2 e5n28f3SuJKoLRpti2h68/b8sKfC/exNFg7+PPJ5sq6oHWwCvjing65PMaFlpZcj3JeemF Z2uycX9F9zAAjUzlwkYi79G7Ft00Nksxl3leijC9jNWvMF2KLUrcdAEvlEqqbd62UrJxt7 FPMY3ydvgO6czxvP1Miyssu+NC/EsxlkYAzQVSWPEPH5BUHmJlvErzfls3ALmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717041536; a=rsa-sha256; cv=none; b=P4iLbEQZVokhkzunaPhduEFRrER2mTokzg6+f8Pkqd+Zvkx7GytbJq0W1FT/h7RsnHS2Ih Y8OxUd/mu65Mj6Ezh4PAMd0Zw++kG1yxBhkuFxzNT/wuIj0t3JmTW4f+AzImRNcexkivD1 YN2BX8+lHXrILqJmM9/5DSq/dSQvAh/Tl4M4lwjvfeTpZktEduardvsFYFhGijshdTW66z YMW9jgsUWha7ljBZxjx+h14Gk5JGhFhq9msSKZbIXv2ccFZIKYRkjQoa4DEfYvm3UuSXWI EIrZqZVwWa7+XdBylJH/Q5iQ9NaoYVzFZXzJ5koSek0b0PslPClZjYKXwItcpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ifi.uio.no header.s=key2309 header.b=Mc3EBDU8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" 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 4E6597AB13 for ; Thu, 30 May 2024 05:58:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCWqQ-0005HA-Jy; Wed, 29 May 2024 23:52:51 -0400 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 1sCWqO-0005Gr-BW for emacs-orgmode@gnu.org; Wed, 29 May 2024 23:52:48 -0400 Received: from mail-out02.uio.no ([2001:700:100:8210::71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCWqK-0002nd-FG for emacs-orgmode@gnu.org; Wed, 29 May 2024 23:52:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ifi.uio.no; s=key2309; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uSdKMM9yv1BwQrvN3YgkzlsugHh3VyaIww7TRWJSDdk=; b=Mc3EBDU8c6OZdcmOmLLaVIFehc jILVqrd0FqH2y6F34fdNTSWhbsvdH2Ehi5dS8muYrlIDgW1d7R+Om6/R/xS8WvmhWaZ2kMX+pOv8B KDaomW0cxqhqPUCnzl7tTCbkoDSbhbFvhmfP2wfck/RhcQ3vr/pN9WeGTz3b8ygDNjiPgYZobeVIp 82hDgw3pJZ5gxHVjrTJ6RiHKTzYveqPEZN5JSMFOz1rpixnKf1iaz66Sj3+8FUWYe/0B5I0dj/Y2D sC1Yz4sDmhaLO2bYcZnpLNy+GMelZ9R998hOUJb/EE1QBy9DURnOQP6iYa5bmEtLhiwzTBmaZp5Vq URx2ccEw==; Received: from mail-mx11.uio.no ([129.240.10.83]) by mail-out02.uio.no with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sCWqB-00BJNN-0z for emacs-orgmode@gnu.org; Thu, 30 May 2024 05:52:35 +0200 Received: from afram.ifi.uio.no ([129.240.65.60] helo=afram.ifi.uio.no.shmi.ifi.uio.no) by mail-mx11.uio.no with esmtps (TLS1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256) (Exim 4.96.2) (envelope-from ) id 1sCWqA-000G4Y-2p; Thu, 30 May 2024 05:52:35 +0200 From: Martin Steffen To: Org Mode List Subject: Re: question about links, macros + org-publish and "parametrization" References: <877cfdovmb.fsf@ucl.ac.uk> Date: Thu, 30 May 2024 05:52:31 +0200 In-Reply-To: <877cfdovmb.fsf@ucl.ac.uk> (Eric Fraga's message of "Wed, 29 May 2024 08:44:36 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-UiO-SPF-Received: Received-SPF: neutral (mail-mx11.uio.no: 129.240.65.60 is neither permitted nor denied by domain of ifi.uio.no) client-ip=129.240.65.60; envelope-from=msteffen@ifi.uio.no; helo=afram.ifi.uio.no.shmi.ifi.uio.no; X-UiO-Spam-info: not spam, SpamAssassin (score=-4.8, required=5.0, autolearn=disabled, T_SCC_BODY_TEXT_LINE=-0.01, UIO_HTTP=0.2, UIO_MAIL_IS_INTERNAL=-5) X-UiO-Scanned: D3B4E056EB9C106EE92C8930C4434F12FF7B5617 X-UiOonly: 509DBBF9658EE5ACFCBF55872FD4D079DED0020C Received-SPF: pass client-ip=2001:700:100:8210::71; envelope-from=msteffen@ifi.uio.no; helo=mail-out02.uio.no X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_CSS=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.35 X-Spam-Score: -2.35 X-Migadu-Queue-Id: 4E6597AB13 X-Migadu-Scanner: mx11.migadu.com X-TUID: kNs6ZBVcnUOo >>>>> "Fraga," == Fraga, Eric writes: Fraga,> Hello, Fraga,> I'm not entirely sure if I am missing something but, in case thanks, it was more that I was missing something. I tried to combine links and macros in a naive ways (without much studying the manual), so I thought perhaps nesting is not possible (or there is another way). Your suggestion solves my "problem" and makes the set-up a bit more "parametric" and easier to adapt, without that one forgets some bits, which is very nice. best, Martin Fraga,> it helps, macros can themselves invoke other macros and Fraga,> macros can make use of [[target][desc]] syntax directly. Fraga,> Can you not build up a hierarchy of macros that would Fraga,> achieve what you want, along these lines: Fraga,> #+macro: link [[file:t.org][$1]] Fraga,> #+macro: target {{{link($1)}}} Fraga,> This is some text where I can look at {{{target(blah)}}} Fraga,> HTH, eric Fraga,> -- : Eric S Fraga, with org release_9.6.19-1230-g407a55 in Fraga,> Emacs 30.0.50