From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QHSbClLCRmOvkwAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 15:34:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SD6IClLCRmPsHgAAauVa8A (envelope-from ) for ; Wed, 12 Oct 2022 15:34:10 +0200 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 E2FAF25B74 for ; Wed, 12 Oct 2022 15:34:09 +0200 (CEST) Received: from localhost ([::1]:55862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oibs7-00011B-S2 for larch@yhetil.org; Wed, 12 Oct 2022 09:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oibpX-00010W-Ds for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 09:31:27 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:35612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oibpV-0003dT-IM for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 09:31:27 -0400 Received: by mail-ej1-x630.google.com with SMTP id k2so38040983ejr.2 for ; Wed, 12 Oct 2022 06:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gzRoSPeNzUEmovICToN2rUZk18LeSyP5OJsfU5wsDvg=; b=KPrIeoWQmmV6psZ4BWksqkLpKJr2wRz4dnPQCeEXc4SUydZtwxkIvooc/N81dbGA0+ X/GCE2RNqLEVG7gfHfipEAuTyDJyNLhEArJCSLCfOkuVnzln8GxLG0Sy03Y5wVUzScBL 0EjT75DwzxzIjY6sKkeVD8WVCsQsD8VC4pbw/U/D22LdwUPb3PB10aFElCFtL1+BNkoX y/S2+KBTYZLBw3OO0C36p/U+N1xRWBUykEmASb3kbZwLzU661YYJ2DYCXh6ax816kKYf rozS5P7mUg7Te1beQBJu5JEULQRuXRA6DCEDc5tnxYrajLGZAWGBFsotgcGhh+BHi98w 4mJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gzRoSPeNzUEmovICToN2rUZk18LeSyP5OJsfU5wsDvg=; b=mOCxKN6hen86D8uPUXNGHBIK2w2GkeSOm+36xcL+BWqH++nQdAX6SLhzLz/wcuRN6V aXyVOsETmQdHnvZ1S07vzjz2bl+trKlrSPfWpoHRIvMqVznKONBDSnR0o5TygyKfK8cF /wWmIUwjep/6fdsO5wHRnxivxYHhoZnJOq5U6ZfzJoeixg/fPzaupLD9q9BVpsM+hpRt KTt2U/r+ZrhVWc06qovrSb2tCqTJoXWZp7Jff0r63aeib2P+LDMEHHsXk9mR4vRjQzhm IfBDHK7EQs14nlpUGhcmQc7RvvZHe48hXwVk0bwe8IH4IX2KdzEFam1vHGpNLX3zyopx CbRg== X-Gm-Message-State: ACrzQf3h4hAqL6noEF+uPQ8hUVYr6Z2H2WGgxBRITaoudJpaNEn3foyV Y5rVHJ5MnafoPUanPcAFPMRsJxjR1+PIgrvEPPQ= X-Google-Smtp-Source: AMsMyM5JpXqHQtfkeTdnfFJpRt8vUYMB3grmHXvtOdkc6gmOfuN5qSG0hfQ4K7qXlK/HNY6TDehCSY9CDkwpI5zEEHE= X-Received: by 2002:a17:907:75d8:b0:78d:3c2e:9a99 with SMTP id jl24-20020a17090775d800b0078d3c2e9a99mr21855437ejc.686.1665581480033; Wed, 12 Oct 2022 06:31:20 -0700 (PDT) MIME-Version: 1.0 References: <875ygpie2n.fsf@localhost> In-Reply-To: <875ygpie2n.fsf@localhost> From: George Mauer Date: Wed, 12 Oct 2022 08:31:08 -0500 Message-ID: Subject: Re: Get the "closest" property value To: Ihor Radchenko Cc: emacs-orgmode Content-Type: multipart/alternative; boundary="00000000000076426805ead6687e" Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=gmauer@gmail.com; helo=mail-ej1-x630.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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665581649; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=gzRoSPeNzUEmovICToN2rUZk18LeSyP5OJsfU5wsDvg=; b=irTIOJiivd9pGT7LJu+jHBmDHLK97Qti69obi4v+XmmZqg3jkSgCPyvuqju4IOprmDJh42 0EZP0ssWvQgZfPxHqz4QgnV133iVGn3Mn/CbZfDsCjm3jUk0Y9DWQJhWN9nUwrpxFbrUIC OVytpm1xDQcfO0VqI7pwK2cvtUeB6+ShrCN2M0bOWBYMTnhCBKEcPv6caAb/igObozx6nq gMq8ntLL5e0/eNnMTIaKeMrz3Ozssw+ANVo7w4Q06fP2EQZxQtdppvbc8IngA5OJMijqqn ydP3F9x1oVe90zyTuPHocC/J/dDk58QRGxYt3YbIFgNRMIlxsdCBCGOxJNtYTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665581649; a=rsa-sha256; cv=none; b=h3kgQCYA9b9K5b7IMn8kSbmvSYV80U7l5ytxyb4yzjDzOOAVH3D8uLv5DUY3hT6T3J53gk x3k4SA/WWHRYixcKv6RWuHVTVHVflXbLk/HagFmaZqw91PJJhba3oJ7GwFWFKAh5OwQ5pm uSsxVhBClPXEFFSJW25tjvjnQG0tGnayMYXlQh/9qqigZaTo9LgH/1PiWuR2Q62wSs3Xrv DieoLoNLjbDQM7XVFOJHcGVIbq94dSiXi6wu8dCFWlXAdxeDiRCKklDDihYvQvQK4sqgIt S2EgMO2Z3gHu30u6xXuMVTaaTn1aKo192eJ2vQZP3yiOH0D3Lbloj8vQIiC3sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KPrIeoWQ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KPrIeoWQ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: E2FAF25B74 X-Spam-Score: -3.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: fsm7MFY8rpP/ --00000000000076426805ead6687e Content-Type: text/plain; charset="UTF-8" Thanks a lot Ihor, while that doesn't seem to "cascade" upwards, it was enough of a clue to get me there. What i'm looking for is (org-entry-get (point) "workspace-directory" 't) with the third "inherit" parameter set Thanks again! That's going to open up a few new workflows for me. On Wed, Oct 12, 2022 at 4:29 AM Ihor Radchenko wrote: > George Mauer writes: > > > If I have a document what looks like the following. What code could I run > > for the ??? to get the property value for "workspace-directory" that is > > closest in the outline to the location running the code? > > > > * Top Level > > :PROPERTIES: > > :workspace-directory: /tmp > > :END: > > > > #+begin_src emacs-lisp > > (???) ; /tmp > > #+end_src > > #+begin_src emacs-lisp :var prop-value=(org-entry-get (point) > "workspace-directory") > prop-value > #+end_src > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --00000000000076426805ead6687e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot Ihor, while that doesn't seem to "ca= scade" upwards, it was enough of a clue to get me there. What i'm = looking for is=C2=A0(org-entry-get (point) "workspace-directory" = 't) with the third "inherit" parameter set

Thanks again! That's going to open up a few new workflows for me.

On Wed, Oct 12, 2022 at 4:29 AM Ihor Radchenko <yantar92@gmail.com> wrote:
George Mauer <gmauer@gmail.com> writes:

> If I have a document what looks like the following. What code could I = run
> for the ??? to get the property value for "workspace-directory&qu= ot; that is
> closest in the outline to the location running the code?
>
> * Top Level
>=C2=A0 =C2=A0:PROPERTIES:
>=C2=A0 =C2=A0:workspace-directory: /tmp
>=C2=A0 =C2=A0:END:
>
>=C2=A0 =C2=A0 #+begin_src emacs-lisp
>=C2=A0 =C2=A0 =C2=A0 (???) ; /tmp
>=C2=A0 =C2=A0 #+end_src

#+begin_src emacs-lisp :var prop-value=3D(org-entry-get (point) "works= pace-directory")
prop-value
#+end_src

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--00000000000076426805ead6687e--