From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id s5FLIBOkTmACEwAA0tVLHw (envelope-from ) for ; Mon, 15 Mar 2021 00:02:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UIWMGxOkTmDVaAAAB5/wlQ (envelope-from ) for ; Mon, 15 Mar 2021 00: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 6A72719920 for ; Mon, 15 Mar 2021 01:02:26 +0100 (CET) Received: from localhost ([::1]:42556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLagj-0007Ys-IB for larch@yhetil.org; Sun, 14 Mar 2021 20:02:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLafx-0007YY-0t for emacs-orgmode@gnu.org; Sun, 14 Mar 2021 20:01:37 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:36653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLafu-0000vK-Kx for emacs-orgmode@gnu.org; Sun, 14 Mar 2021 20:01:36 -0400 Received: by mail-wr1-x435.google.com with SMTP id k8so4825777wrc.3 for ; Sun, 14 Mar 2021 17:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qKUCBxpBLevkYKVw/PZSYu7+3CaF/8lD+m9OSBdFZVQ=; b=JM0FMJu2YqVGQjmBUM5jgsVka6THDUm0dlkjPRISX/6FlLYryhjecylj4RkVMMumP/ wcIJjwdU9pxJnhOhqGKhu5mEG3bl3P8RLusKAlAbo2sgV+egv6RRwHMdrl9gONEiClzm qIavnt70GIkjcjdY5L32DsV38eN7oG0uoSiO7m/V4Fb3OseIDMld4QKwkU9PistXVOTE uNPPcl/AY19NVdNCBsvPq5lwuSOMsit6DtxQLGNTL8IBPC+f98V7YxUhoif97H/5gXk8 TDEd2DTvf1qNAB92A0yltcmrihNIJoGs8EnOix7fAlFXiX9bSZqd9TI48FoUz1jdVIsy 3/Tw== 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:cc; bh=qKUCBxpBLevkYKVw/PZSYu7+3CaF/8lD+m9OSBdFZVQ=; b=aWoZx5r1P6VPAIVNMtEwHGlDOahNl+XHpU2pbLrWKMQ81obPLZCbAjI7NOhVBHp9tD 2IYWryapBxU/HuyK5oUs2MF1WoFNGbj3prmIISmh0Zi9FfJqsT5aZ86GCcFfw9Tz9GHC icTXj+A+1KHaNPPYKLb2s24SiJx8SEznk1ZcyD7Nvn98NZ6FvCYsktTV9Pr6NsNmYsjD 7Sf9vV5FoeXwriweqNPiuOXnfN1epbSYIssoermVwHZpSltdwzItZjUtIHL/DpIU1BRU IbtnvXSHtw/7NlisiOgBFRy79VrxypBFtma9VQ04KxwgEGRmKk1Pz9TJxqj/jPXlQuXM 4ZuQ== X-Gm-Message-State: AOAM532FCdeteBj/XHKVNVqzW6/v9/8wrW7IYpSmgf7Pz370zMKlSq4A a3z4VxZ67zsIx4rWE32makeh58Qlck1zXPOIDE4= X-Google-Smtp-Source: ABdhPJxUm0kBdS12R30o77+8HwNmxYeq7oPKD8RyqsL5SfMizSaD+93qbxsxXbjR/+m0KoDFSjEHZTLOjyxcPpKzN4Q= X-Received: by 2002:adf:f150:: with SMTP id y16mr24722384wro.414.1615766492119; Sun, 14 Mar 2021 17:01:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Kitchin Date: Sun, 14 Mar 2021 20:01:21 -0400 Message-ID: Subject: Re: References?? (feature idea) To: David Masterson Content-Type: multipart/alternative; boundary="000000000000cda07f05bd87f3d9" Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: org-mode-email 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=1615766546; 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=qKUCBxpBLevkYKVw/PZSYu7+3CaF/8lD+m9OSBdFZVQ=; b=ZBh+vR9owDwpLNfzzkB0z5S2mUA+pRB0rilkZHmofDoovQsqV+7urTFwKcgCwmFg1c6AaI 6NJ/FZuPgWSBCKbAgEx58tNu2kzIffpOEZzOAD2sZFvSKlMlq3pRnM4zlX4ns/F7MRMEmm NrYIH8c15iPFsDIPkm18S+UrZYNgK6qIkEOLvZzv1CB6V9zsyq86Uz3Z+I9AOaY0iRee7p KRU62fkpm/BMWGFGbisJfs0dSJC26yyy441PiJ53WqYzG1n5/hDmuaK/zBteyrulOG6Uy8 ibG742u/pORZbAnbaRepaxjIX3BLCKU5TZfAluS48Og6wjzeG0jKAt5by8xtvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615766546; a=rsa-sha256; cv=none; b=NwlnZ7EaYChT33vAHu7EYthg6VsAaNGpOZtY97qsqCgD0iyxXfDkuXoN2i+kyaETtPwAiJ pmshEtuw+oN7FctsRAzVb9ju7cyGfXIg1TQyB6gJudiTakA2ZBVFwFAajBFgMDESkqt40U mKnYYYPqCXGvUKiz0ucxGtXhmWb4/qXKvLEGfDnpQ7MPU3cADAwBrx2WWolWicc+knjyOv tRlmRdlG2Hs5LhqM+pY/2Pw24q1ve9g7kH21NKPUSGZ0I01wn90jhGblJ/IM+JcY3ntffG j+cG1pKILPg8fjStuaClpHhAcxUwsTNCbwaQkTmBhXV80ShrcQW51j0L+MCmRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=JM0FMJu2; 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: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=JM0FMJu2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); 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: 6A72719920 X-Spam-Score: -2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: FqLFOoTq8LD5 --000000000000cda07f05bd87f3d9 Content-Type: text/plain; charset="UTF-8" You could define a new org link with this behavior. You just need to work out a syntax for a link to the heading that also includes the property name. e.g. [[property:file.org::*Heading::property]] then, define a :follow function that probably opens the heading when you open it, and an :export function that looks up the property and uses that value on export. You would split your path on ::, then you should have a list like (file heading property-name). For the follow function, just find-file on the filename, then search for the heading. For the export, wrap that in save-window-excursion, and use (org-entry-get) on the heading to get the property value. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Sun, Mar 14, 2021 at 7:41 PM David Masterson < dsmasterson92630@outlook.com> wrote: > I don't see this capability in Org, but maybe I'm missing it. > > My use case is that I setup an Org file as my phonebook. Each child > header (ie. no subheaders) is a person in my phonebook. I can > categorize them using parent headers. All information about a person is > stored in PROPERTY drawers (but, you could have information outside the > drawer). > > What I'd like to do is include a "reference" to a PROPERTY in the > phonebook entry in other Org files so that phone and address is stored > in the phonebook, but I want the "reference" to become the value of the > PROPERTY when the other Org file is exported. I could do a link to the > phonebook Org file, but that is a link and not the data. I'd prefer to > have (say) an exported PDF be standalone and not have references to the > other file that I would also have to export. One reason is that I might > have "confidential" information in the phonebook. > > Does this make sense? Has it been done? > -- > David Masterson > > --000000000000cda07f05bd87f3d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You could define a new org link with this behavior. You ju= st need to work out a syntax for a link to the heading that also includes t= he property name. e.g. [[property:file.org::*Heading::property]]

then, define a :follow function that probably opens the heading wh= en you open it, and an :export function that looks up the property and uses= that value on export.

You would split your path o= n ::, then you should have a list like (file heading property-name). For th= e follow function, just find-file on the filename, then search for the head= ing. For the export, wrap that in save-window-excursion, and use (org-entry= -get) on the heading to get the property value.

John

---------------= --------------------
Professor John Kitchin=C2=A0
Doherty Hall A207F<= br>Department of Chemical Engineering
Carnegie Mellon University
Pitt= sburgh, PA 15213
412-268-7803


On Su= n, Mar 14, 2021 at 7:41 PM David Masterson <dsmasterson92630@outlook.com> wrote:
I don't see this capabi= lity in Org, but maybe I'm missing it.

My use case is that I setup an Org file as my phonebook.=C2=A0 Each child header (ie. no subheaders) is a person in my phonebook.=C2=A0 I can
categorize them using parent headers.=C2=A0 All information about a person = is
stored in PROPERTY drawers (but, you could have information outside the
drawer).

What I'd like to do is include a "reference" to a PROPERTY in= the
phonebook entry in other Org files so that phone and address is stored
in the phonebook, but I want the "reference" to become the value = of the
PROPERTY when the other Org file is exported.=C2=A0 I could do a link to th= e
phonebook Org file, but that is a link and not the data.=C2=A0 I'd pref= er to
have (say) an exported PDF be standalone and not have references to the
other file that I would also have to export.=C2=A0 One reason is that I mig= ht
have "confidential" information in the phonebook.

Does this make sense?=C2=A0 Has it been done?
--
David Masterson

--000000000000cda07f05bd87f3d9--