From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wGSoCr2JRmOPWQAAbAwnHQ (envelope-from ) for ; Wed, 12 Oct 2022 11:32:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YDfNCb2JRmP3+QAAG6o9tA (envelope-from ) for ; Wed, 12 Oct 2022 11:32:45 +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 EAC37C533 for ; Wed, 12 Oct 2022 11:32:44 +0200 (CEST) Received: from localhost ([::1]:40576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiY6W-000107-3L for larch@yhetil.org; Wed, 12 Oct 2022 05:32:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiY3v-0000zm-N3 for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 05:30:03 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:54901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiY3m-0004Gv-3T for emacs-orgmode@gnu.org; Wed, 12 Oct 2022 05:30:02 -0400 Received: by mail-pj1-x1031.google.com with SMTP id 70so14778415pjo.4 for ; Wed, 12 Oct 2022 02:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NRoqGexi9Dx50KjFXuS8+jBxLdR8jD1UD9Eydunsds8=; b=eQ0Re0r/Ci+d1jiQpMVD1tWopYVQbopRJVX7En9E7Nuum/Ob/h54hJ5B2hmtUHxzHL AK7/9TtHm4dx4kvGSty0iq/BrklAQbQwfijMaoSAEpz93HI45kvQ0KwU0qI9tcodHDNa wVlFi28q8JBi8/8ux3bP/EVxGomKrcmgCvcXMuSfBRHbSv1/fL69Ae+H+RBAt4DZRLLc ajdcTfVEDg9Dwe2GVJ22GUzWHqHH7nOWbcS3EtRCGsLtxpiJQxm9k/tLTCHvNlYxq2RE OgogfcGtMUJ/27EHEWPSDPtnhSLklYpPXDiHlLLlka03hEaPLQGAtDxGSqb6cmQuJJAf nhKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NRoqGexi9Dx50KjFXuS8+jBxLdR8jD1UD9Eydunsds8=; b=gfTWFbnR0F1VIRWqmtJleEgUJ2NooYxbx90P0liG0CaINq4yzCVDFaCSTyJuOa1i5E C2x1Goqox/fQm7qLtGXGtfdZheCn/ut0gbeA+ZVoEf1wW0kqWg3LO6kJkj7UDpmCwzoP iM8z7cnergoatCsPbyWux+kBo/9+V2DBbLG//F1FVSVD8Mc1vvMVSwg8koU5o4CLhwBg YNi+gOjh1Z8Ft1xFqcPMH/IPovqOCQWFqsAT5W7O/FmdE4Z0LycrdlZA5RZ4yixEhnIL F5jXRPYjWtpFdaPZOP/OPQJB2VYrSjR1+o4ROwfB9bqQ5b5y8S1TNaYJ0BBU2cU++mUh IgYQ== X-Gm-Message-State: ACrzQf1wAZ9EeK91Y/KnKfaWpWLGNVcTCtA/hkgLNmoXxzyhi8oxqgPh vmHllYaNTsOWzAiFZOuK76kHoz7I1zIpfFev97/iqw== X-Google-Smtp-Source: AMsMyM7+gysy+MDTg/SqRbJRlowT+iQdhaxDwdy1azXcFZS9NyfqIx8vbydKVq4GC/8j2Qs26hqYMw== X-Received: by 2002:a17:903:2144:b0:182:42ce:5778 with SMTP id s4-20020a170903214400b0018242ce5778mr15587093ple.46.1665566992693; Wed, 12 Oct 2022 02:29:52 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id x16-20020aa79a50000000b005403b8f4bacsm10658421pfj.137.2022.10.12.02.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 02:29:51 -0700 (PDT) From: Ihor Radchenko To: gmauer@gmail.com Cc: emacs-orgmode Subject: Re: Get the "closest" property value In-Reply-To: References: Date: Wed, 12 Oct 2022 17:30:40 +0800 Message-ID: <875ygpie2n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1031.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, 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: , 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=1665567165; h=from:from:sender:sender: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=NRoqGexi9Dx50KjFXuS8+jBxLdR8jD1UD9Eydunsds8=; b=PWb0pWP5bT7fg0MDCYCY3VZWP8cQ16mBR2M1sVdJvvhgTMvTYATMAeUTGYlHRjxP7SzAwy IHcx6eWQbpRhlAy3p4+k0Gzf1sXXR+ftvfqLFqM21fim2J/7FPIzi9HkJ9hZzdMqXAqTpb PSn7mkhqnIkwv9WJS457E8d04zCiD5BUrW/BDZB93fql8YV/0NbP6tFYAc9W3E06gdr8mZ qhRYFrZmdlTA/KqMX4t6+yS5rmSzQtJQRd2+GJBOi8549Fp55+hjBPjGteWMlJslb2iTNA UD+nPKRD8anhuJJ7KESxXoDdpdNn79N6My4JffyeWF9v4z+mofYvNKCad6LREA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665567165; a=rsa-sha256; cv=none; b=WRnZHRzwcg3I4aI3aq5YDfGithPhYZidclQwZfuw8XAhiIVWaR3jTq732h08qcQNtxnkNg E0CMlRoieKDzi3jjeTGjogkLVKQfGJU2VSS/ZGxo2d4ollhhUN5qL6D7LFSD8Bj5WfZVB5 /Zg9gq8aPWvkBYa/gZ/7MgeeKINUGlpStUxKmPaYNcdviteead2gasAi0rFrMb/YRGHFHc URSFK2P0nuXRx2QnOjePZ+4/58K14O1WBkHfoYy07qm94QxG3zAz1BqMWqK33GKM9u0eUw DggprUgGweCUrR8FeHS4QlKak0DG5jYqoif4jheG3PGeGIvIfP5xsQrdI0qunA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="eQ0Re0r/"; 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: -8.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="eQ0Re0r/"; 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: EAC37C533 X-Spam-Score: -8.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: XjA+9XFdOXV9 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