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 0LscIHGjVF/XVQAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 08:53:05 +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 CID3G3GjVF/IMgAAB5/wlQ (envelope-from ) for ; Sun, 06 Sep 2020 08:53:05 +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 17CF094060E for ; Sun, 6 Sep 2020 08:53:03 +0000 (UTC) Received: from localhost ([::1]:37696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEqQ1-0003YI-OO for larch@yhetil.org; Sun, 06 Sep 2020 04:53:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEqPh-0003Y7-J4 for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 04:52:41 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:45343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEqPg-0000hb-06 for emacs-orgmode@gnu.org; Sun, 06 Sep 2020 04:52:41 -0400 Received: by mail-pf1-x431.google.com with SMTP id k15so6967025pfc.12 for ; Sun, 06 Sep 2020 01:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=YVrkgfFHhOUxVqUK0S/1JDKXfCkjArgVueXap9ZR7KM=; b=p9OEThKl0vu53PnL1QuLObznzmDhfrv/ul4i0Rbcqd11vSds/GuVQYSCHkVHKpFhfn ToO9WLHEEsLfYEq75oXh1TYNme7PieFatxPqPW89fkoEtnE+tJ8vVudkqa2zgNU45z6H /VbScZTFdqnheE+qntYhUc78wAnXqcuzcrrHREr1VQgVxbVZuWDnklPl+Dyl58Js3UOS 9IKJxPtWFtqhlFxlzenLG18CNbdeQdVK186VSLN43Yufo5hC22tz/x93jBFBeIXVlEBu D+PDW0pZMbazbmehP/pTA+JRFuiwgcdDqCwLUKfzmyUFCVNNuX83a4N3lyRswxx0drIC Q10A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=YVrkgfFHhOUxVqUK0S/1JDKXfCkjArgVueXap9ZR7KM=; b=c3hKZcWMm/gwVUAIU4N5pmvazRSvtvmp3CwnXBvAYL405OKRK7CnJmwJiU6bDXnX7L jtVKNBuODSqnHOXERhneA9y1vD67ZiofwZqBhbD+i8ZXUSHNFImVAywpOIqR5eBHZetd P50DQCW5moKgFyhQbicI8I0hfrQltMtjsfOwUA4uHobctv9rn/hLoc6W+aObYHljz1vg BPMYOJh4cxIINQTN83CRcwLXrQRlL+bGklUG5LZrw+7QATKvrXjk8yBQelOo+c84KVgw Y0A2fvCE9O1JgXzVZNhWjoR7m/kJ9IXPTiMeiHczJhqeHpiIdz3AxJ8IIuTgPVZNdBL5 pejQ== X-Gm-Message-State: AOAM532m0t36LVg1skP2Vy0wzxOXrUHEYl/245OSkab9a1ZvPWIpN2nr am7QGRM/o0+uZ+7h5MPlHpvm6Q31wD+AmQ== X-Google-Smtp-Source: ABdhPJzCbGeALduKSb6l3/xhP+4U9+vCsPM0i/aVLjLTAMRel6Dll6mcq9+8+3zZpRV8ZXyF6aui7w== X-Received: by 2002:a62:3083:: with SMTP id w125mr3055811pfw.81.1599382357744; Sun, 06 Sep 2020 01:52:37 -0700 (PDT) Received: from flare-121 ([2601:601:cb7f:fc70:5d3d:b2e5:dcdc:ead4]) by smtp.gmail.com with ESMTPSA id 72sm11286082pfx.79.2020.09.06.01.52.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 06 Sep 2020 01:52:37 -0700 (PDT) References: <87lfhnpaep.fsf@gnu.org> User-agent: mu4e 1.4.5; emacs 26.3 From: flare To: emacs-orgmode@gnu.org Subject: Re: attachments and inheritance (bug?) In-reply-to: <87lfhnpaep.fsf@gnu.org> Date: Sun, 06 Sep 2020 01:52:36 -0700 Message-ID: <871rjfffsb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=gabrielxaviersmith@gmail.com; helo=mail-pf1-x431.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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.23 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=p9OEThKl; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -1.71 X-TUID: 21VaJIRYEzjM I have run into this issue myself, my solution for this ended up being a quick hack to toggle this inheritence so that subheadings could reach into superheadings when referencing the same attachments. #+BEGIN_SRC elisp (defun org-attach-switch-inheritence () "Allows for Subtrees to have their own distinct attach directories" (interactive) (if (member "ID" org-use-property-inheritance) (progn (setq org-use-property-inheritance (delete "ID" org-use-property-inheritance) ) (message "ID Inheritance Disabled") ) (add-to-list 'org-use-property-inheritance "ID") (message "ID Inheritance Enabled") ) ) ;; keybinding for C-c C-A (local-set-key [3 33554433] 'org-attach-switch-inheritence) #+END_SRC Bastien writes: > Hi Julius, > > Dittmar writes: > >> Hello friends, >> >> either I misunderstood something or I stumbled upon a bug. >> >> Situation: I have a heading with some files attached. This heading has >> an ID property, upon which the directory for those files is based. >> >> There's also a subheading with no ID. Inside of that subheading I'd like >> to link to one of the attached files. But although >> org-attach-use-inheritance is non-nil, the attachment is not found from >> inside that subheading. >> >> Shouldn't it be found? > > I tried your example and the file is found for both links. > > What is the exact value of `org-attach-use-inheritance' (t or 'selective)? > > If 'selective, what is the value of `org-use-property-inheritance'? > >> - GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.10.9) of >> 2018-07-06 >> - org-mode: current master >> - no setting containing 'attach' in any configuration file > > Can you provide a reproducible recipe with a minimal configuration? > > Thanks,