From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GomlNgi8DmWUdwAA9RJhRA:P1 (envelope-from ) for ; Sat, 23 Sep 2023 12:20:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GomlNgi8DmWUdwAA9RJhRA (envelope-from ) for ; Sat, 23 Sep 2023 12:20:56 +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 9410934E69 for ; Sat, 23 Sep 2023 12:20:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=L9HibyHL; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695464456; 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=W15KPE1VnxeH40oOrqA8DpU7+pFxnmqyy0NcgB4J9z8=; b=Pm0CBXgkQz+uziTJSfDHebG0od1hu4aEzfbkETYrnl0eUTAi6YIlD5NKmBinxvB2vygUOc vXm2bWLTuOd5WlvDgrjAU8PNuv3BopdZUnlbn3XpkkezYbcce+S8UPwkew03V/2eZMEskZ qwAjs802ba5vbd6SJcE1YMDLQ6sFnJMVQjqB/3Ss4sFEOJzNjCfuVyqf4tt051AZ48LtiF Rzi3lP+vAhvFUrpfk2l7bsHFi9y0lToS/xeXsVcyQQZv7bHmYE9JzYsOi1REEj7kWkza5h 4Pcv2jzVBgubTjPl2iL5aFWbXg84HzKyKZHY8qZ6AIluK933QXGvWLqUI+u0ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=L9HibyHL; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695464456; a=rsa-sha256; cv=none; b=ZraNs/EbnZr7VQbT5gmVcJbKn0ZOLoO/oRdqmmhB/GhNyYyoK2MHq4fQtuC3qHmJWU/UC7 qRbpEApMBKoUD+PqTU8Eq1Q1yYK6MCNZAnWbCBiHuJiszbjEoe89Nm4e9Q6bE2ecoa84XF dKSM8NYWsdJYKLR1TNs2V2/YkoTgGRfU9WKL3smDK6aelRljXbFOg6+RhcCGvElnIDzpr/ OXHPHWEuLph2qiapw8gvgBRM7M7kIxCYzbWwjmpX5Qfpv37m8yY9U1v7hp5stmw1/emZVR 7JTg9M/Ktn+qSVv7SXIt6kxuEe3dCtoLAjUOHLsva3H+GsgpkSN+hP10gjmNUA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjzk0-0007Jf-4C; Sat, 23 Sep 2023 06:20:01 -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 1qjzju-0007JN-LO for emacs-orgmode@gnu.org; Sat, 23 Sep 2023 06:19:56 -0400 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjzjs-0008A1-EL for emacs-orgmode@gnu.org; Sat, 23 Sep 2023 06:19:53 -0400 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6c496719a9aso1880125a34.0 for ; Sat, 23 Sep 2023 03:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695464387; x=1696069187; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=W15KPE1VnxeH40oOrqA8DpU7+pFxnmqyy0NcgB4J9z8=; b=L9HibyHLlRXH3npIbd5NkpZgeapQOC/mqoMoWak/ZxZitej0DwGCQAGmans2prtNMD cTUyr0qKF4ungPvz/vEbJLJYM8XaWYYveGXbJw65ePeo7Hr42JFWaNVM0ldvq5o448I9 FCicOPlNQRhfjXhmsPkoE3XUaDfTl9RwnlzqZ3UAvThMuEhQHslDlA0zPtQW5hNj/o3Z 6oq59fAAh9FAaNFjPXiPu8iqxzVbD+mdxOIc/EUY0+75R/cyUCMiSgMhMsuT/KHKLI6/ awr5muGKnglVzFomVqD60ZOi+P1IqBaYGZfLb/irjs2seFu5NN3O0jYIR7G2v1BJgGAU 8vKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695464387; x=1696069187; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W15KPE1VnxeH40oOrqA8DpU7+pFxnmqyy0NcgB4J9z8=; b=Y5ndZUph/NihdqFsjI6Yx3HKtRZFzjXjKVmCpYAAONEx54N2PJYfH1DjUK00eq0Oll w0e5s/4m1LU2p4XUsVHj5ol2Ft5BKfGrfbxpL25L2vTdnSOBH90GLn1+vPDy7IyGQTb9 +v33iCcblVdA08kuGz6lLCQxckXSjhFeGuh5qQbGs/Eo05cpUGVughOR/bZGMIptlsxi NANFUjYE0LtuIp6S2Th2oSjKJQ5PGjbyL8KtqhubX931Iw5MzDa+VcZVsy8fIlDbOpOz nstWqpSqyu6XqBYG9TkGJUagiSq7DGMqcD+r0a0LffFcOh+VNyS7DeVjPkKWVYdDkToj hnzQ== X-Gm-Message-State: AOJu0Yyco+MdH2HiET/Nj9O3VGFbl5xyW+WV0fr5mOvuTcPv0PXd8VCb aR7bRcHY4xG6/60ejcEKwaZbxD9YS/0Y+ncT+oc+/RnT X-Google-Smtp-Source: AGHT+IHx6cFoXnUJVry3eaIzY/wTMQW/Sep6fzCEPIiPBPL1Rbz8S/dTQ1KWnSWJu096Gwm0bIPkK4gxrxCZgjexkpA= X-Received: by 2002:a9d:6d96:0:b0:6b8:7a07:b312 with SMTP id x22-20020a9d6d96000000b006b87a07b312mr1363448otp.10.1695464387357; Sat, 23 Sep 2023 03:19:47 -0700 (PDT) MIME-Version: 1.0 References: <87ttrl2syk.fsf@localhost> In-Reply-To: <87ttrl2syk.fsf@localhost> From: Gustavo Barros Date: Sat, 23 Sep 2023 07:19:36 -0300 Message-ID: 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/)] To: Ihor Radchenko Cc: org-mode list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::32b; envelope-from=gtvbrs@gmail.com; helo=mail-ot1-x32b.google.com 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, HK_RANDOM_ENVFROM=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.57 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 9410934E69 X-Spam-Score: -6.57 X-TUID: 9005ExZkcVsv Hi Ihor, On Sat, 23 Sept 2023 at 05:28, Ihor Radchenko wrote: > > 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)) I didn't know that. Thanks for the detailed answer. Best, Gustavo.