From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 MNskDMkT0mFLOQEAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 22:06:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iITMCMkT0mFDdwAAauVa8A (envelope-from ) for ; Sun, 02 Jan 2022 22:06:17 +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 50259F9A0 for ; Sun, 2 Jan 2022 22:06:16 +0100 (CET) Received: from localhost ([::1]:59190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n483T-00046g-42 for larch@yhetil.org; Sun, 02 Jan 2022 16:06:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n482V-00045k-0k for emacs-orgmode@gnu.org; Sun, 02 Jan 2022 16:05:15 -0500 Received: from relay.itccanarias.org ([62.174.94.111]:59600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n482R-0007xW-RK for emacs-orgmode@gnu.org; Sun, 02 Jan 2022 16:05:14 -0500 Received: from localhost (localhost [127.0.0.1]) by relay.itccanarias.org (Postfix) with ESMTP id E7C6F4A0AC; Sun, 2 Jan 2022 21:04:40 +0000 (WET) X-Virus-Scanned: Debian amavisd-new at itccanarias.org Received: from relay.itccanarias.org ([127.0.0.1]) by localhost (gwmail-tf.corp.itccanarias.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cqh6Csi5Z_KA; Sun, 2 Jan 2022 21:04:35 +0000 (WET) Received: from Erasure.corp.itccanarias.org (erasure.corp.itccanarias.org [10.141.187.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by relay.itccanarias.org (Postfix) with ESMTPS id B378A4A0AB; Sun, 2 Jan 2022 21:04:35 +0000 (WET) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.itccanarias.org B378A4A0AB Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline DKIM-Signature: v=1; a=rsa-sha256; d=itccanarias.org; s=default; c=relaxed/relaxed; t=1641157475; h=from:subject:to:date:message-id; bh=QONPAHjFKHMQ74x2nB3mm/Gx9uzSGsGYxi0asU0iGoY=; b=cbJ4pkEg/8XfSEv/hmxDLVOvsT8OncIv2npssgssMf7sOVQ1jLk4Qc6asYcpPlD49yhtHKAnmgs 2OQWqoVZbLzg0WIxbq/bLiOXuuUgam5Hk0Gb8srF/4IQ8na8H8qJ+aX/S6zNemuFSW/gPyrlNrT+b ryTT7vgmvkY57iXP2d3Fk+jrrx1ioA4aSOtV+c7MsEiuQNDVyyiTMqaGqPxzkl5kyrV1vm16JdSRo vUmW4gNU0EpCnVf1zAcBVDZODsJSxWTOQTt/Y2hgjEutiP1LPA0n872K+iL4gubi8Q03P1dhJGxUm pNnXuRmGLsmOTuCl1WPi7kYhh6lpYiC2EDRw== Received: from itccanarias.org (10.141.153.178) by Erasure.corp.itccanarias.org (10.141.187.131) with Microsoft SMTP Server (TLS) id 14.3.498.0; Sun, 2 Jan 2022 21:04:34 +0000 Date: Sun, 2 Jan 2022 21:04:33 +0000 From: Eduardo Suarez-Santana To: Ihor Radchenko CC: Subject: Re: [PATCH] Re: Escaping org mode date properties Message-ID: <20220102210433.GC29829@itccanarias.org> References: <20220101122409.GA29829@itccanarias.org> <875yr31ogp.fsf@localhost> <20220101200103.GB29829@itccanarias.org> <8735m626k5.fsf@localhost> MIME-Version: 1.0 In-Reply-To: <8735m626k5.fsf@localhost> Received-SPF: pass client-ip=62.174.94.111; envelope-from=eduardo@itccanarias.org; helo=relay.itccanarias.org X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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" 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=1641157576; 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=QONPAHjFKHMQ74x2nB3mm/Gx9uzSGsGYxi0asU0iGoY=; b=SikmCbg1Ak1gu6eKmqkHcRzZ99oLiQbmHMByqR7ZnhbT5WXKjcdLf5EbIUgYxjh89MHiGw /+bvHhq+PCrYFW7Z3PtUOmhmu/F5Us8gjP1mbMSRIvwexJW8S+ctm5tCk+Hl1K37COs5NJ N5EXvkvFPpgKJZgs002IcuLZFKZq5kGxzcORQYovSKK5Cj8Nymw9DPjZL8n9M3dNGAPyxV jglyw8Ge7mj3fYwJdTLQ4E+Q54kFhJoe6QjyjOZ1kdxpmyC3ODWDhuETli41Lv9dnUOUbc GL9eKE4PLEtd9G9yzM94Wd+QCCOQLahy+fmQBCM6FofDusRJeDDu+RCRVamoDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641157576; a=rsa-sha256; cv=none; b=pOmbEq71uhurNmmsUTZPI0yQrb5bE1AHvhS1WkPfh6S9hosWYW2GLO20aHPkIxD/Qojh2e IqNEuEv6TNrdjSeUDBDC3YUKPD18+IuaOOlWLPHYKXBMa92z7M7z3Ff+Uz94zu6K32ux78 KI4PRTjiwYZT03/EmAAYAeNstT2ELtwIK5/bF0fE9ZzjPnQXFTAMnJDU5wJIM0HH7U7/M6 oPKP+evd5gL38pgqaJHK7+KQlrhlhLAspj28E6ButZVG5w8J1jV9uZW18+TrWAx11npo3C WaEcvOWNcu74q5Ky+W6rp/gpPCHfW+BQ0sp4u1PjtobMcwxEvKFVE6ksDPcXGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=cbJ4pkEg; dmarc=pass (policy=quarantine) header.from=itccanarias.org; 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: -6.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=cbJ4pkEg; dmarc=pass (policy=quarantine) header.from=itccanarias.org; 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: 50259F9A0 X-Spam-Score: -6.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: nNSHO2IKhq0k On Sun, Jan 02, 2022 at 10:51:54AM +0800, Ihor Radchenko wrote: > Eduardo Suarez-Santana writes: > > >> I am unable to reproduce. What are your Org and Emacs versions? > > > > I'm using Spacemacs (develop branch). > > > > - Emacs 27.2 > > - Org 9.5.1 > > > > I get a weird behaviour about it. These events appear when I start emacs. If I > > edit somehow these entries they disappear from the agenda view (until I start > > emacs again). > > Confirmed > > Thanks for the hint! I was able to reproduce entries disappearing from > agenda view. > > The culprit is org-in-src-block-p. It relies on fontification to > determine if we are inside a code block. However, when you strip a code > block with SCHEDULED inside from begin/end lines, the fontification > properties do not get removed. > > The attached patch should fix the issue. However, I need several people > to test it first - the patch will make things slower without cache. > The patch works for me. However, how about next cases? * an example block #+begin_example SCHEDULED: <2015-02-16 Mon .+2d> #+end_example * an example with colon : SCHEDULED: <2015-02-16 Mon .+2d> I think they behave the same way as 'begin_src'. > >> Depending what you want, you may use org-agenda-todo-list-sublevels or > >> add agenda filter excluding specific tags that you can then use to mark > >> undesired subtrees. > > > > Could be a workaround. Thanks a lot. > > > > Anyway it looks like a bug to me. > > 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.