From: Eduardo Suarez-Santana <esuarez@itccanarias.org>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Re: Escaping org mode date properties
Date: Mon, 3 Jan 2022 10:39:32 +0000 [thread overview]
Message-ID: <20220103103932.GD29829@itccanarias.org> (raw)
In-Reply-To: <875yr1trmg.fsf@localhost>
On Mon, Jan 03, 2022 at 11:39:19AM +0800, Ihor Radchenko wrote:
> Eduardo Suarez-Santana <esuarez@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\x02\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("mailto" :follow
#[514 "\301\300\302Q\x02\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("https" :follow
#[514 "\301\300\302Q\x02\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("http" :follow
#[514 "\301\300\302Q\x02\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
("ftp" :follow
#[514 "\301\300\302Q\x02\"\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"
)
next prev parent reply other threads:[~2022-01-03 10:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-01 12:24 Escaping org mode date properties Eduardo Suarez
2022-01-01 15:10 ` Ihor Radchenko
2022-01-01 20:01 ` Eduardo Suarez-Santana
2022-01-02 2:51 ` [PATCH] " Ihor Radchenko
2022-01-02 21:04 ` Eduardo Suarez-Santana
2022-01-03 3:39 ` Ihor Radchenko
2022-01-03 10:39 ` Eduardo Suarez-Santana [this message]
2022-01-12 13:14 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220103103932.GD29829@itccanarias.org \
--to=esuarez@itccanarias.org \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).