From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aBvNE2RWOmImVwEAgWs5BA (envelope-from ) for ; Wed, 23 Mar 2022 00:06:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GI2FDGRWOmIXNgAAG6o9tA (envelope-from ) for ; Wed, 23 Mar 2022 00:06:12 +0100 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 A932526501 for ; Wed, 23 Mar 2022 00:06:11 +0100 (CET) Received: from localhost ([::1]:35526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWnZq-0002cA-8g for larch@yhetil.org; Tue, 22 Mar 2022 19:06:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWnZR-0002bG-6W for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 19:05:45 -0400 Received: from [2001:4b98:dc4:8::229] (port=55101 helo=relay9-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWnZO-0000wd-Jb for emacs-orgmode@gnu.org; Tue, 22 Mar 2022 19:05:44 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id B7901FF802; Tue, 22 Mar 2022 23:05:35 +0000 (UTC) From: Nicolas Goaziou To: Ihor Radchenko Subject: Re: Timestamp parsing inside node properties and other contexts out of org-element-object-restrictions References: <87v8wje4nd.fsf@localhost> <066001d83d3c$7b463380$71d29a80$@tomdavey.com> <87tubqmi94.fsf@localhost> <87r16umhnj.fsf@localhost> Mail-Followup-To: Ihor Radchenko , Ignacio Casso , tom@tomdavey.com, emacs-orgmode@gnu.org Date: Wed, 23 Mar 2022 00:05:34 +0100 In-Reply-To: <87r16umhnj.fsf@localhost> (Ihor Radchenko's message of "Tue, 22 Mar 2022 18:00:00 +0800") Message-ID: <877d8llha9.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::229 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::229; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Ignacio Casso , emacs-orgmode@gnu.org, tom@tomdavey.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647990371; 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=LV+8SvrOfy8FpYWyjKoMUIIG0JQ4l8Oj5xplAld6B44=; b=nwYnEqqCSM+WKuGDi8Fj/GIgUgM3JxgMNrIckRJCya56PeeUfEI2ud9Ez3RdhfYFWrN/DM IOF1AsVpyq9Svi3spzYzHoHZWCpfngBSQRg8+LDqXPqxaIXSxwtmeoMAft+dTvSulchS3u vtoai39pnfKhPqBTHplNRZ4jr0IlQfX0YsMecph3dwO6/MXSgGRnn1N6YyVHiMRJ3LgRc8 c1MQqYrFlJCaIemi1BWeLUXBfX1oIk8rF9E1FNARDS1xihR2Zmglwus2xYqq8sQDAR9r/1 lpVwCvaFfPnCarOfK06BJYfSRUUWBDLGAHIWhswyIn/61cgbcAODIFHlU2zOTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647990371; a=rsa-sha256; cv=none; b=BuL8PowMctW56uB4LxkZHe12aSGtTw7OQ8thnMNGYdsOfaKC7xVgkW8252UWRNfXO4+64E ygIvlm8MpIetXU6owOE6SM1uyE77WdctNZuE9tV21Cb3MvHeLlaMBWEW8aG1LMAYbryPub XT9U4ol59bgtzloVnUHzmrdtMZOsislMpYpV8E/z2Qdvej+ODichF7T7LxQNqmaWLU+zuv ng+zoCvrlnz2hDlqrw6AesU47TCcHzWVJdOKQF72Z2KS/K3QO9eR9S7xrqi8wPPvgkjxJm AqRCYc/gSgXhE6oNSg4BmfDMp8ty7DpWq/P22dKmSJrSkoZjyLCrNWnVw1QAuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -3.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: A932526501 X-Spam-Score: -3.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: tdrstCG9VY3I Hello, Ihor Radchenko writes: > So, depending on the current command, Org may on may not treat objects > matching org-ts-regexp-both as timestamps. > > This situation complicates syntax and makes org-element unreliable when > dealing with Org buffers. This is orthogonal to syntax. I think the docstring of that predicate is clear: `org-at-timestamp-p' is a convenience function for broader uses of timestamps, which existed before Element. > Should we just simply allow timestamps to be a part of node property > values? Should we _not_ treat timestamp-looking text outside their > allowed contexts (like quotes, source blocks, etc) as timestamps? Allowing Org syntax in property values is creating another set of problems: often the value is really a string that Org shouldn't try to interpret. Regards, -- Nicolas Goaziou