From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oBr5LdGhDmUXAAAAauVa8A:P1 (envelope-from ) for ; Sat, 23 Sep 2023 10:29:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oBr5LdGhDmUXAAAAauVa8A (envelope-from ) for ; Sat, 23 Sep 2023 10:29:05 +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 7EFBD4029A for ; Sat, 23 Sep 2023 10:29:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695457745; 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; bh=9mhOluXCOQSEkv5cNTvWynZogr9T5Ls+5UL/ssEyvlo=; b=h0eYmz0fGtGbfegpUoATMU6JKxCbxXCN6R4TdGHdK9HZkLo4yO0uX0AN6h7RYkznpvyP5E 7U5YtP1ttlzPN9EUZ34OuNqsPIWsv/fqfhV9R1sGPPJrUS6V4023GDrTrog/LtY7tMdNjx zojmCSdKose/MFzfY4Y+Gv1bLfntPY4QzwODCBwMdGGNYJa8dGkycenJoAyBstQrCa3p4P YkouSMSOg/BFaR48JBg6TYb/WkveST361x1IggwC2fuFtvRSLtPe+14COuX+cMI3Pn3as/ khPbSqoIaNtfdBGaMxuRCbCxYq25JL9J6+BcdBIUxS4VKS8M+59mKOEXrj8+IA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695457745; a=rsa-sha256; cv=none; b=jNKPYK5CzON9z/zWRvTK9ffjM5RiQPEzlFKmScU31L8h7rVEzS4XWFIy8w4zLhzRBDmhhf neGpm49xbySRIMHazJFa8mHROQuzIX0GFbNhppCJF+G9+ZOpJ81VbCrBStyItD+YIAnJR9 2xGh5PUEEEryV6O6GYxhEwnZp9h34DFczidVI8bTwls011wj4Em+WG/qaGpV5qmNX70Avt AsPtlttgfXgD7ux2qicq2KLq3XntjlDc/Dj+zleD812roeBeViPSaHcaRvYm3ckOAfxfzx E4nHmEKfvcYWhinkmD+G+7IgHh16ut29ch47sJS0x04hwVJO/AL/LX4HAlFFeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=fail reason="SPF not aligned (strict), No valid DKIM" header.from=posteo.net (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjxzo-0006R2-Nz; Sat, 23 Sep 2023 04:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjxzn-0006Ql-0N for emacs-orgmode@gnu.org; Sat, 23 Sep 2023 04:28:11 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjxzl-00045L-0n for emacs-orgmode@gnu.org; Sat, 23 Sep 2023 04:28:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6A5F5240101 for ; Sat, 23 Sep 2023 10:28:07 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rt2MV5Mypz9s2X; Sat, 23 Sep 2023 10:28:06 +0200 (CEST) From: Ihor Radchenko To: Gustavo Barros Cc: org-mode list Subject: Re: [BUG] org-element-context doesn't recognize link inside property drawer [9.6.6 (release_9.6.6 @ /usr/local/share/emacs/29.1/lisp/org/)] In-Reply-To: References: Date: Sat, 23 Sep 2023 08:29:23 +0000 Message-ID: <87ttrl2syk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -2.84 X-Spam-Score: -2.84 X-Migadu-Queue-Id: 7EFBD4029A X-TUID: ynSGkDE/nt6g Gustavo Barros writes: > When a link is placed as a property value, `org-element-context' does > not recognize it as a link. It is expected and intentional: https://list.orgmode.org/orgmode/877d8llha9.fsf@nicolasgoaziou.fr/. > In particular, the "link" element is not present, as would be the case > if the exact same link were not inside the property drawer. On the > other hand, the link is active (fontified, works, etc.). Thus, > `org-element.el` and `ol.el` seem to disagree as to what that part of > the buffer actually is. This is intentional. org-agenda and fontification deliberately recognize links in more contexts compared to org-element and export. Same for timestamps. For example, see `org-at-timestamp-p'. For ol.el, the links are open inside property drawer for convenience. Below is a code responsible for this case from `org-open-at-point': ;; No valid link at point. For convenience, look if something ;; looks like a link under point in some specific places. ((memq type '(comment comment-block node-property keyword)) (call-interactively #'org-open-at-point-global)) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at