From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UBmwGKHS0mHyuAAAgWs5BA (envelope-from ) for ; Mon, 03 Jan 2022 11:40:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KItZEaHS0mHnMAEAG6o9tA (envelope-from ) for ; Mon, 03 Jan 2022 11:40:33 +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 2624416242 for ; Mon, 3 Jan 2022 11:40:32 +0100 (CET) Received: from localhost ([::1]:48862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4KlT-0002SV-5p for larch@yhetil.org; Mon, 03 Jan 2022 05:40:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4Kkg-0002Qj-DW for emacs-orgmode@gnu.org; Mon, 03 Jan 2022 05:39:42 -0500 Received: from relay.itccanarias.org ([62.174.94.111]:36530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4Kkd-0003tu-Fa for emacs-orgmode@gnu.org; Mon, 03 Jan 2022 05:39:41 -0500 Received: from localhost (localhost [127.0.0.1]) by relay.itccanarias.org (Postfix) with ESMTP id 2BB914A0AC; Mon, 3 Jan 2022 10:39:36 +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 pzzIcR7tiNHp; Mon, 3 Jan 2022 10:39:34 +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 B15DD4A0AB; Mon, 3 Jan 2022 10:39:34 +0000 (WET) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.itccanarias.org B15DD4A0AB Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; d=itccanarias.org; s=default; c=relaxed/relaxed; t=1641206374; h=from:subject:to:date:message-id; bh=kopeQAfqyQs7URftnCWwDYpjotFsQdZIXNt+pbRkKBw=; b=N4DhJ4CMrUCPRZyNJIjdU57yCJT5WROpZiGpdugbNIQ0yojaOfBTKZ9E2SljDKmoqagmqtQnvB+ s0+ObkmxETw8RwHSrKGy2LoCUhSguWJkuJpGyg02sU3syHcWbBstdr0m/qUeAGpi9A7wrm5PNwx+R XAJrAHjkevRyJb44pCoZsza094sZqkqZ0e1dQdlZiKEr/XOoGT/VzPwgyRqX+kU2WoCR/ZzFtVM7p /00iJ5I+PvHWIY0vtEX4D9MUpzX66MfEF+wp5PfJq1W64XHgixPghOXGOoCjqMbHeCARaL5lAO7+c jrEytCZaIlu0dIbztRxdMnPin0rL47vxdICw== Received: from itccanarias.org (85.155.66.122) by Erasure.corp.itccanarias.org (172.18.0.4) with Microsoft SMTP Server (TLS) id 14.3.498.0; Mon, 3 Jan 2022 10:39:33 +0000 Date: Mon, 3 Jan 2022 10:39:32 +0000 From: Eduardo Suarez-Santana To: Ihor Radchenko CC: Subject: Re: [PATCH] Re: Escaping org mode date properties Message-ID: <20220103103932.GD29829@itccanarias.org> References: <20220101122409.GA29829@itccanarias.org> <875yr31ogp.fsf@localhost> <20220101200103.GB29829@itccanarias.org> <8735m626k5.fsf@localhost> <20220102210433.GC29829@itccanarias.org> <875yr1trmg.fsf@localhost> MIME-Version: 1.0 In-Reply-To: <875yr1trmg.fsf@localhost> X-Originating-IP: [85.155.66.122] 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, RCVD_IN_MSPIKE_H2=-0.001, 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=1641206432; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kopeQAfqyQs7URftnCWwDYpjotFsQdZIXNt+pbRkKBw=; b=D0TzR7I/EN5iKeQgrjfNps3Vb+Xp/2lEhgISWkuARkg9x19gyt78KZnyWyy7cESUiYcotp td+9sGie2dMUENhh2OyDzHgC2D3mc1nmJGZFLtNlmSEE98hA8l2GWIiDNnnLxE+ov9+3dd wWC9ocNbvOJSPKzb+ODUoGey+OsF5/reke+GjqUv6jEiwbizAZijDxY+ifosYTXU+ZfJAE XGn0ycDSkgtfuFSaXPiw7cdGy9s2w6z98j3ciUzqvyB8KsQyl4uRyoBtrjesTdzbmDTf95 ghptLHATg1ku9LxFXwMN0114qNVNbKqxmy9C4dzNRnpH4LLzzi4O0Va+renmEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641206432; a=rsa-sha256; cv=none; b=gprxZ3F34YLjnPVpF3o4tlk6cCO92CvfF8Ko8bKUdXef6jOL41xBw6avGIvcY/r9MopAWE 44Y4RZqnB+wqygNFUI3GZUEFJxuypEeKu70aYdBylu/xFZcDk/7dL2LyucqZHcw7ycON3u OyvMqShVah2gKaI+6ny4LDGwIcPMxZHK9pfqjjUoXAW35GXxV7F2IKRBaLMzT6IwciLp1I Kl8A3grjaDIalMHS9ihuArIQPCsk97Gk9fJgYme0L85R2OIsqKQph/uoJJ9bY58IAYjC48 eBVcs4RW5rJ1h1cM5nuzf29KXjcqOaLjigrWfw4FcmPZWGrtkOTOdXcW4o8KHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=N4DhJ4CM; 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: -4.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=itccanarias.org header.s=default header.b=N4DhJ4CM; 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: 2624416242 X-Spam-Score: -4.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: SEbIQcgTpVeT On Mon, Jan 03, 2022 at 11:39:19AM +0800, Ihor Radchenko wrote: > Eduardo Suarez-Santana writes: >=20 > > However, how about next cases? > > > > * an example block > > #+begin_example > > SCHEDULED: <2015-02-16 Mon .+2d> > > #+end_example >=20 > 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? >=20 > > * an example with colon > > : SCHEDULED: <2015-02-16 Mon .+2d> > > I think they behave the same way as 'begin_src'. >=20 > If you mean that adding example/fixed-width environment does not make > disappear, I am unable to reproduce. >=20 > However, the second case is wrongly recognised as a heading with timestam= p. >=20 > Can you try the attached patch? (on top of previous) >=20 I hope this helps: 1. I removed my '~/.emacs.d' directory. 2. I started emacs. 3. I installed org-9.5.2 via 'list-packages' and the user interface. 4. I closed emacs. 5. I moved '~/.emacs' to '~/.emacs.d/init.el'. 6. I edited ~/.emacs.d/init.el' with the following contents. BEGIN Contents of '~/.emacs.d/init.el' (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages '(org))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (setq org-agenda-files '("~/sample.org")) END Contents of '~/.emacs.d/init.el' 7. I created '~/sample.org' with the following contents. BEGIN Contents of '~/sample.org' * TODO begin_src scheduled entry #+begin_src org SCHEDULED: <2022-01-03 Mon> #+end_src * TODO colon scheduled entry=20 : SCHEDULED: <2022-01-03 Mon> * TODO begin_example scheduled entry #+begin_example SCHEDULED: <2022-01-03 Mon> #+end_example END Contents of '~/sample.org' 8. I started emacs. 9. I run 'M-x org-agenda' and then 'a' (agenda week view), and got next res= ult in the agenda buffer: BEGIN Contents of '*Org Agenda*' Week-agenda (W01): Monday 3 January 2022 W01 sample: TODO begin_src scheduled entry sample: TODO colon scheduled entry sample: TODO begin_example scheduled entry Tuesday 4 January 2022 Wednesday 5 January 2022 Thursday 6 January 2022 Friday 7 January 2022 Saturday 8 January 2022 Sunday 9 January 2022 END Contents of '*Org Agenda*' 10. I closed emacs, applied *first patch* in this thread to '~/.emacs.d/elpa/org-9.5.2/org.el'. 11. I removed '~/.emacs.d/elpa/org-9.5.2/org.elc'. 12. I started emacs and run 'M-x org-agenda' and then 'a' (agenda week view= ), and got next result: BEGIN Contents of '*Org Agenda*' Week-agenda (W01): Monday 3 January 2022 W01 sample: TODO colon scheduled entry sample: TODO begin_example scheduled entry Tuesday 4 January 2022 Wednesday 5 January 2022 Thursday 6 January 2022 Friday 7 January 2022 Saturday 8 January 2022 Sunday 9 January 2022 END Contents of '*Org Agenda*' 13. I closed emacs, applied *second patch* in this thread to '~/.emacs.d/elpa/org-9.5.2/org-agenda.el'. 14. I removed '~/.emacs.d/elpa/org-9.5.2/org-agenda.elc'. 15. I started emacs and run 'M-x org-agenda' and then 'a' (agenda week view= ), and got next result: BEGIN Contents of '*Org Agenda*' Week-agenda (W01): Monday 3 January 2022 W01 Tuesday 4 January 2022 Wednesday 5 January 2022 Thursday 6 January 2022 Friday 7 January 2022 Saturday 8 January 2022 Sunday 9 January 2022 END Contents of '*Org Agenda*' Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30) of 2021-10-20 Package: Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/eduardo/.emacs.d/elp= a/org-9.5.2/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-babel-after-execute-hook '(org-display-inline-images) org-metadown-hook '(org-babel-pop-to-session-maybe) org-agenda-files '("~/sample.org") org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mod= e-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append loca= l] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n= (fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-a= rg-expand) org-babel-load-languages '((ditaa . t)) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-ditaa-jar-path "/usr/share/ditaa/ditaa.jar" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers o= rg-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-comman= d-activate) org-export-before-parsing-hook '(org-attach-expand-links) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete or= g-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-= eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org= -irc-export) ("info" :follow org-info-open :export org-info-export :store org-i= nfo-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :st= ore org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete or= g-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("fi= le+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q=02\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG= )"]) ("mailto" :follow #[514 "\301\300\302Q=02\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL A= RG)"]) ("https" :follow #[514 "\301\300\302Q=02\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL AR= G)"]) ("http" :follow #[514 "\301\300\302Q=02\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG= )"]) ("ftp" :follow #[514 "\301\300\302Q=02\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)= "]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-lin= k--open-elisp)) org-link-elisp-confirm-function 'yes-or-no-p org-ditaa-eps-jar-path "/home/eduardo/.emacs.d/elpa/contrib/scripts/DitaaE= ps.jar" )