From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oFwYJwazWWFzngAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 15:41:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kFWEIgazWWEjbQAAbx9fmQ (envelope-from ) for ; Sun, 03 Oct 2021 13:41:26 +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 02977156E1 for ; Sun, 3 Oct 2021 15:41:26 +0200 (CEST) Received: from localhost ([::1]:37550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mX1k5-0006T5-50 for larch@yhetil.org; Sun, 03 Oct 2021 09:41:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX1ie-0006Qf-1A for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 09:39:56 -0400 Received: from vatten.lustgas.nu ([2a02:750:7::105]:60586 helo=love.tolo.nu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mX1ib-0005Wm-0m for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 09:39:55 -0400 Received: from iris.tolo.nu (unknown [172.18.1.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by love.tolo.nu (Postfix) with ESMTPS id 6113C40243F2; Sun, 3 Oct 2021 15:38:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=toloe.se; s=mail; t=1633268323; bh=hGjFYxKod5xA7E6/vnt1Xkuo4uuP/Z8qArm719mENF0=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=PUizIkDixqhzsuTVwiRWOwuUV8dKsk4Q+Y5DZcSlecqQ9fgWEqB+7DxdvkQlGFXAa HbmfhLgeC3SpzAIHoCNvsSdtxId5OK1RZHPAb7493FLOSVhsZpUksaAKg/AF2/rfDB 1ra71VokXH1fHoPcGOrJTrvmhI+KLaUQPNf3sWcs= Received: by iris.tolo.nu (Postfix, from userid 1000) id 2D8317A0052; Sun, 3 Oct 2021 15:38:43 +0200 (CEST) References: <87y28avyjf.fsf@toloe.se> <87v92gde01.fsf@localhost> User-agent: mu4e 1.6.6; emacs 28.0.50 From: Johan =?utf-8?Q?Tol=C3=B6?= To: Ihor Radchenko Subject: Re: org-attach-use-inheritance inherits from sibling Date: Sun, 03 Oct 2021 15:28:34 +0200 In-reply-to: <87v92gde01.fsf@localhost> Message-ID: <87zgrqqlcs.fsf@toloe.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: neutral client-ip=2a02:750:7::105; envelope-from=johan@toloe.se; helo=love.tolo.nu X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, SPF_HELO_FAIL=0.001, SPF_NEUTRAL=0.779 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: emacs-orgmode@gnu.org 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=1633268486; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=U3TAmN0iP81yhAy8a6BbHNBmBFmim8+MGgXDh9W5X5c=; b=m/tFEHNhB5Sp4CW5P8i1U81Dg7Qtt9MutVvP46pP9kkm94zofaHrwOMtHqKyW7uxkayh89 DxqrB/T/qGhPosWVB2YXxLz1Q1P698J2nuySZgJB8sUJengpURM6elVI+izJTmeI6qYdY5 WFKAuh2/uWLdFVIv+BlCJY8HO4TNMIQdkrkAoAniYPJ/MiB57nEHX8ht0fQUnRCBI+RQkO pDeGzKZjGyRQV0m4K4bjr2iPrSNyfVRam3GAjrcbnuhIPGhVN1EA1ZnEHVlfa9/4mO5WOq W9ioJRLn0Ja/Oj2OGaBqV1odZT4hsNg3zHLAJ1+BQvjzsMJBuR3S1gNh9XBs9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633268486; a=rsa-sha256; cv=none; b=sAz3o881hPk98Rq+w0L47fkJ2rSfTsZtPSEqpoKj9j5FEcNKSovEYWgtHIWlHd1i+eW++n 3YNF0iddwQ2KZNodKeTwblzYSQjvJZbgdchEXQdJNKhGRvygcM7nYNVDBLjArCzqfuYaLj h7AgQYkOWfWKJJaZQbogNeR+Jm4ZgfYa6uIRllM+jzgLr3I9IYfGfh5RivPwoOMHvURmA3 8+j5Vx/iqboYqGzg/XOOF+IIG7vp8+8DHPn75fm7yWpoE6QSsp4ye3Q4L5WnzsDfNYpYC0 fxTVIYtesS9BcNpNz0Xs3kRBSKmoJE/jrsFdOdTdLOt7smkW1fjv7rUJ8rEX3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=toloe.se header.s=mail header.b=PUizIkDi; 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: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=toloe.se header.s=mail header.b=PUizIkDi; dmarc=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: 02977156E1 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bv+8g9DZfW+g Ihor Radchenko writes: > I cannot reproduce on current main. Are you still seeing this=20 > problem? Yes I believe I am. Also, it does not seem to be an org-attach=20 issue but rather an issue with how org gets properties with=20 inheritance. If "* Top heading" is the first heading in the buffer with nothing=20 above it, not even a whitespace/newline, then '(org-entry-get nil=20 "id" t)' with point in "* Second heading" will return the id of=20 "Top heading". If there is anything before "Top heading" then=20 'nil' will be returned. This happens when I run 'emacs -Q' from within the "lisp"=20 directory of a newly cloned "org-mode" main branch. This example illustrates the problem: ---- beginning of buffer ---- * Top heading :PROPERTIES: :ID: acf18561-7a84-4703-96c6-1aceccd46b33 :END: * Second heading =20=20 #+begin_src emacs-lisp (load "org.el") (load "org-id.el") (org-entry-get nil "id" t) #+end_src #+RESULTS: : acf18561-7a84-4703-96c6-1aceccd46b33 ---- end of buffer ---- --=20 Johan Tol=C3=B6