On Mon, Jan 03, 2022 at 11:39:19AM +0800, Ihor Radchenko wrote: > Eduardo Suarez-Santana <esua...@itccanarias.org> 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) >
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 : 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 result 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/elpa/org-9.5.2/) current state: ============== (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-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-mode-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 local] 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-arg-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 org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-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 org-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-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-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) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302Q\"\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-link--open-elisp)) org-link-elisp-confirm-function 'yes-or-no-p org-ditaa-eps-jar-path "/home/eduardo/.emacs.d/elpa/contrib/scripts/DitaaEps.jar" )