From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iPO2E7tv0mEZLwAAgWs5BA (envelope-from ) for ; Mon, 03 Jan 2022 04:38:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +O8RELtv0mHyqgAAauVa8A (envelope-from ) for ; Mon, 03 Jan 2022 04:38:35 +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 B5B18EC7C for ; Mon, 3 Jan 2022 04:38:34 +0100 (CET) Received: from localhost ([::1]:43064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4EB7-0006rF-UJ for larch@yhetil.org; Sun, 02 Jan 2022 22:38:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4EAi-0006r7-PZ for emacs-orgmode@gnu.org; Sun, 02 Jan 2022 22:38:08 -0500 Received: from [2a00:1450:4864:20::12e] (port=37543 helo=mail-lf1-x12e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4EAg-0002Uv-Tc for emacs-orgmode@gnu.org; Sun, 02 Jan 2022 22:38:08 -0500 Received: by mail-lf1-x12e.google.com with SMTP id h7so27879153lfu.4 for ; Sun, 02 Jan 2022 19:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=MWjodMV8P7x+FWS55LkO0MIZL1y4pUfv0miRRIfHxtM=; b=pVbQpezamkcQNhxGBNwmpjGbfX/CoGjRg/haXjatDvXnZ4q+qt+D2m60Hh74aYMPcK 3h8RakrgPMfSVdPCpsovpwLSVv3e5fst01oDrD6mUmxpLNFtMTPzMWF2Y3oVFgzmNV8R k2eSn6mev7AJUUgTYXaMCeHaOSh/rI6MfH99MrDTq1bl0/9cwiSYqUiKmhMjNhunUTw5 i3sITFpJSX6QoDnwa9lzemLgalEID+UdH5DG0+ONQ3TTYFQLjWuC3g8Jiu3GzWGnIu7S oQLvLeCjrLqQ+OW0m5eFhhRNjTvx1DKIEia8cZd/HL2J9usG/Y50oxJdUWY3qvBjNp64 q2QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=MWjodMV8P7x+FWS55LkO0MIZL1y4pUfv0miRRIfHxtM=; b=o3d19Qob1+PGaXQa4y2me5JCiKs+uZq+a1X9TB4T0IOZdupBmIiwz9Vr9q4gCrNM8M uYv+TNRMxFQaZXKZtlt/R2VfyDuRWMRIHvqifzX6x5aRUzUKNUSGRhuZlhFOGkflaUkX UmlYEb/Z15Ubi0ONH4/SjZE5WmSTzosIbgksnuf0A4vAUd7zfS2khUkMkKXREJ3KgsaL jriyTd63k+cdR57M1DuiSEiu9Sjw+VVsThKLndArjXqZjb2vy3D1BvkL2aFGs64qJEsO X9vcgYwvEMVuVDfS0hcZ6YramyEvYkz7KJj7KAPf9QTQgmB6WNlgSQSG8jUs2ELz52fL JKDw== X-Gm-Message-State: AOAM533bP/G/nB0Jd4A8GjrGd08yFwbii5OUCAirk7w30isgVYHYNz3M Kc38eTyfa9CQMofR/sIgGSc= X-Google-Smtp-Source: ABdhPJxplFBu3j+JFvQjlVH0KK7xsqz1yA0+6mSmKxUcD7VwLV0p606z3A1at1c05rsC44O4+KHf2g== X-Received: by 2002:a05:6512:1113:: with SMTP id l19mr38838271lfg.605.1641181080468; Sun, 02 Jan 2022 19:38:00 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id u2sm3496284lfg.300.2022.01.02.19.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 19:37:59 -0800 (PST) From: Ihor Radchenko To: Eduardo Suarez-Santana Subject: Re: [PATCH] Re: Escaping org mode date properties In-Reply-To: <20220102210433.GC29829@itccanarias.org> References: <20220101122409.GA29829@itccanarias.org> <875yr31ogp.fsf@localhost> <20220101200103.GB29829@itccanarias.org> <8735m626k5.fsf@localhost> <20220102210433.GC29829@itccanarias.org> Date: Mon, 03 Jan 2022 11:39:19 +0800 Message-ID: <875yr1trmg.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641181114; 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=MWjodMV8P7x+FWS55LkO0MIZL1y4pUfv0miRRIfHxtM=; b=VS/cb6FA4yS686gMdm2Q5oeRzWXHNRn7Y/zX/YjkYkLiHrg7sT9ul2m5SM38kHhM2drBLc dhXSAFJxSeeIa2ZZm/nAJucFU51Bg9ev0H40Sz+D10KssZ79/ictOn5qM0cckyWxeKMSYs xbHsIA74l4r5PZz198v5oovpb6VlmigXRH/voJPdKtdipYIDGc1GpokB7gi6/4AGDcMiRm ieeuYCg4Maa6FWyr4NJ7qBhC1poqeoqugp9m2GKNQkEgacZJGrdpgk7M2l97EEQNqDsI0q uwxhzoOwfiJvesZdicoHxBZ1P6RUF+aaJ0ab+EbpYK+sA/zmfyOby9+uZ/xOiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641181114; a=rsa-sha256; cv=none; b=YaUKDBxAYkKQxSyEfbbG1HFTpVRlJUgCYPwVC2tRDxPN6x04ecya1X8UZiKa9nI4J41jL0 12CyNWP1w2Kyox/xtCSTdJyTrIg6iSNwN8z5gDgrLkYlB294EeevfTW09MmRc1Jlq4mcNn YgYfRlXsD5KNx0TawxYbfDyGTEj5veM2v76V3ddVqXpkCumabvWOrTlWe1zpGYd9lgYZ1u +vVJJES54RR2u3NtcJa03DvvdFMss3VSH4wPHCkAJTinXvHnMVFOobsY97e6/WY4cMwRtb FxujbhCqYwfC//aMJxSFbIliwShD6H6pkQVgs4q/dOWyMpRmQBQ8tzGVLqceNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pVbQpeza; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pVbQpeza; dmarc=pass (policy=none) header.from=gmail.com; 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: B5B18EC7C X-Spam-Score: -5.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9JXcjdrCkfkS --=-=-= Content-Type: text/plain Eduardo Suarez-Santana writes: > However, how about next cases? > > * an example block > #+begin_example > SCHEDULED: <2015-02-16 Mon .+2d> > #+end_example I am unable to reproduce this using Org 9.5.2 Can you provide concrete steps starting from bare Emacs how to reproduce the inconsistency you are seeing? > * an example with colon > : SCHEDULED: <2015-02-16 Mon .+2d> > I think they behave the same way as 'begin_src'. If you mean that adding example/fixed-width environment does not make disappear, I am unable to reproduce. However, the second case is wrongly recognised as a heading with timestamp. Can you try the attached patch? (on top of previous) >> For future. You will make things much easier if you provide a clear >> sequence of steps to reproduce the problem. Your original report is not >> reproducible if I just copy-paste your code into a new org file. I had >> to guess what you did in order to see the problem. > > Sorry about that. I got weird results and was not sure about the expected > behaviour. I had already asked in IRC with no answer. "Weird" usually means that you expect some behaviour, but get surprised. However, for a person far away using different environment and settings (me), it is hard to guess about what went wrong without knowing details of what you did, what you expected, and what went wrong. See https://orgmode.org/worg/org-contribute.html and https://www.chiark.greenend.org.uk/~sgtatham/bugs.html for detailed instructions. Best, Ihor --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org-agenda-get-timestamps-Ignore-non-timestamps-matc.patch >From 0d91c1bd81cb6fe19666761e50fb1368add385a8 Mon Sep 17 00:00:00 2001 Message-Id: <0d91c1bd81cb6fe19666761e50fb1368add385a8.1641180460.git.yantar92@gmail.com> From: Ihor Radchenko Date: Mon, 3 Jan 2022 11:26:18 +0800 Subject: [PATCH] org-agenda-get-timestamps: Ignore non-timestamps matching re * lisp/org-agenda.el (org-agenda-get-timestamps): Explicitly confirm that object at point is a timestamp. Fixes https://list.orgmode.org/20220102210433.GC29829@itccanarias.org/T/#m39b80d45d7d6cfc6b713284365c283579ac94cb1 --- lisp/org-agenda.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index fed36ac9b..94aea1b0a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -86,6 +86,8 @@ (declare-function org-add-archive-files "org-archive" (files)) (declare-function org-capture "org-capture" (&optional goto keys)) (declare-function org-clock-modify-effort-estimate "org-clock" (&optional value)) +(declare-function org-element-type "org-element" (&optional element)) + (defvar calendar-mode-map) (defvar org-clock-current-task) (defvar org-current-tag-alist) @@ -5729,7 +5731,8 @@ (defun org-agenda-get-timestamps (&optional deadlines) (org-at-planning-p) (org-before-first-heading-p) (and org-agenda-include-inactive-timestamps - (org-at-clock-log-p))) + (org-at-clock-log-p)) + (not (eq 'timestamp (org-element-type (org-element-context))))) (throw :skip nil)) (org-agenda-skip)) (let* ((pos (match-beginning 0)) -- 2.34.1 --=-=-=--