From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonardo Bighi Lourenco Subject: Bug: Org-capture datetree duplicating entries when in Portuguese locale [9.2.5 (9.2.5-1-gff6508-elpa @ /Users/leonardo/.emacs.d/elpa/org-20190805/)] Date: Fri, 9 Aug 2019 23:12:55 -0300 (BRT) Message-ID: <670205841.86441.1565403175815@office.mailbox.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_86440_531980103.1565403175808" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50824) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwGsc-0002EC-12 for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:13:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwGsZ-0001W5-Fz for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:13:13 -0400 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2]:50906 helo=mx2.mailbox.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hwGsY-0001V5-Sa for emacs-orgmode@gnu.org; Fri, 09 Aug 2019 22:13:11 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 029A0A0DF6 for ; Sat, 10 Aug 2019 04:13:05 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id dmebsy3H3emv for ; Sat, 10 Aug 2019 04:12:56 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org ------=_Part_86440_531980103.1565403175808 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable --text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ When I capture more than one entry using a datetree with org-capture, it cr= eates a new heading for that day, instead of using the existing one. Only h= appens when I'm using the "Brazilian Portuguese" locale on Mac OS. Worked f= ine on Linux. For example, multiple entries today (Friday) resulted in this: * 2019 ** 2019-08 *** 2019-08-09 Sexta Feira **** [2019-08-09 Sex 01:21] Entry 1 *** 2019-08-09 Sexta Feira **** [2019-08-09 Sex 03:55] Entry 2 *** 2019-08-09 Sexta Feira **** [2019-08-09 Sex 17:19] Entry 3 The "Sexta Feira" line was repeated. I have a suspicion on the reason. Mac OS reports the days of the week as two words (examples: "Quinta Feira",= "Sexta Feira"). I can check this by asking for "%A" when calling the `time= ` command. Linux, on the other hand, return the days as one word ("quinta-f= eira", "sexta-feira"). So MAYBE it's related to the org-datetree-find-date-create function, that u= ses this regex: `"^\\*+[ \t]+%d-%02d-\\([0123][0-9]\\) \\w+$"`. Maybe that = `\w+` at the end is the reason? I'm not really sure. Emacs : GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.= 20 Version 10.14.3 (Build 18D109)) of 2019-04-12 Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpa @ /Users/leonardo/.em= acs.d/elpa/org-20190805/) 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-configure-edit-buffer) org-after-todo-state-change-hook '(org-checklist) org-blank-before-new-entry '((heading) (plain-list-item)) org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-refile-targets '((nil :maxlevel . 7) (org-agenda-files :maxlevel . 7)) org-download-annotate-function 'org-download-annotate-default org-agenda-files '("~/org/organize.org" "~/org/errors_orgmode_commits.org" "~/org/jogos.org" "~/org/rpg.org" "~/org/bookmarks.org" "~/org/inbox.org" "~/org/livros.org" "~/org/trabalho.org" "~/org/blog.org" "~/org/escrita.org" "~/org/journal.org" "~/org/journal_work.org" "~/org/receitas.org" "~/org/memacs/") org-log-redeadline 'time org-reveal-start-hook '(org-decrypt-entry) org-modules '(org-protocol org-drill org-habit) org-mode-hook '(#[0 "\301\211 \207" [imenu-create-index-function org-imenu-get-tree] 2] #[0 "\300\301\302\303\304$\207" [add-hook before-save-hook org-encrypt-entries nil t] 5] org-clock-load auto-fill-mode #[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-clock-persist 'history org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-startup-indented t org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-log-reschedule 'time org-crypt-key "contato@leonardobighi.com" org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-ar= g-expand) org-babel-load-languages '((restclient . t) (emacs-lisp . t) (js . t) (ruby= . t) (sql . t)) org-log-done 'time org-checklist-export-function 'org-export-as-ascii org-fontify-done-headline t org-occur-hook '(org-first-headline-recenter) org-agenda-window-setup 'current-window org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-line= s org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command= -activate) org-tags-column -82 org-habit-graph-column 53 org-babel-tangle-lang-exts '(("ruby" . "rb") ("emacs-lisp" . "el") ("elisp"= . "el")) org-return-follows-link t org-confirm-shell-link-function 'yes-or-no-p org-stuck-projects '("+TODO=3D\"PROJETO\"" ("NEXT") nil "") org-link-parameters '(("id" :follow org-id-open) ("file+sys") ("file+emacs"= ) ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) ("file" :complete org-file-complete-link) ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path)))) ("help" :follow org--open-help-link) ("http" :follow (lambda (path) (browse-url (concat "http:" path)))) ("https" :follow (lambda (path) (browse-url (concat "https:" path)))) ("mailto" :follow (lambda (path) (browse-url (concat "mailto:" path)))) ("news" :follow (lambda (path) (browse-url (concat "news:" path)))) ("shell" :follow org--open-shell-link)) org-capture-templates '(("t" "Tarefa" entry (file "inbox.org") "* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n") ("j" "Di=C3=A1rio Pessoal" entry (file+olp+datetree "journal.org") "* %U %?" :time-prompt t :empty-lines 0 :time-prompt t) ("J" "Di=C3=A1rio de Trabalho" entry (file+olp+datetree "journal_work.org") "* %U %?" :time-prompt t) ("i" "Info to clocked Task" item (clock) "%i%?" :empty-lines 0) ("I" "Info to clocked Task" item (clock) "%c %?" :empty-lines 0 :immediate-finish t) ("b" "Bookmark" entry (file+olp "bookmarks.org" "Inbox") "* [[%:link][%:description]]\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n%:link\n= \n%:initial\n\n" :empty-lines 0) ("n" "Nota Pessoal" entry (file "inbox.org") "* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" :empty-lines 0) ("c" "Compras" entry (file+olp+datetree "journal.org") "* %U Comprei %? :COMPRAS:\n:PROPERTIES:\nPRICE:%^{pre=C3=A7o}\n:END:" :tim= e-prompt t) ) org-clock-idle-time 5 org-habit-preceding-days 10 org-confirm-babel-evaluate nil org-deadline-warning-days 5 org-agenda-custom-commands '(("w" todo "AGUARDANDO") ("C" todo "COMPRAR") ("j" . "JOGOS") ("jj" "Quero jogar" tags-todo "+JOGO/!+JOGAR|+PAUSA") ("jc" "Comprar" tags-todo "+JOGO/DESEJO" ((org-agenda-sorting-strategy (quote (priority-down)))) ) ("ja" "Prioridade A" tags-todo "+JOGO+PRIORITY=3D\"A\"/-DESEJO" ((org-agenda-sorting-strategy (quote (todo-state-up)))) ) ("jb" "Prioridade A ou B" tags-todo "+JOGO+PRIORITY=3D{A\\|B}/-DESEJO" ((org-agenda-sorting-strategy (quote (priority-down todo-state-up))) ) ) ("jn" "Estou jogando" tags-todo "+JOGO/JOGANDO") ("jJ" "Todos pra jogar" tags-todo "+JOGO/!+JOGAR|+PAUSA|+BACKLOG" ((org-agenda-sorting (quote (priority-down todo-state-up))) ) ) ("jr" "RPG pra jogar" tags-todo "+JOGO+rpg/!+JOGAR|+PAUSA|+BACKLOG") ("jp" "Jogos em pausa" tags-todo "+JOGO/PAUSA") ("jt" "Terminei" tags "+JOGO/!+TERMINEI|+COMPLETEI") ("g" . "GTD tags") ("gc" tags-todo "+@casa" ((org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ("go" tags-todo "+@computador" ((org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ("gr" tags-todo "+@rua" ((org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ("gt" tags-todo "+@trabalho" ((org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ("ga" tags-todo "+@any" ((org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ("W" "Weekly Review" ((agenda "" ((org-agenda-ndays 7))) (stuck "") (todo "NEXT") (todo "AGUARDANDO") (todo "PROJETO") (todo "SOMEDAY")) ) ("p" "Projetos" todo "PROJETO") ("c" "Global Calendar" ((agenda "") (todo "AGUARDANDO") (todo "NEXT") (tags-todo "@any") (tags-todo "@casa") (tags-todo "@rua") (tags-todo "@trabalho") (tags-todo "@computador") (org-agenda-skip-function (quote org-agenda-skip-if-scheduled-later)) ) ) ) org-directory "/Users/leonardo/org/" org-tags-exclude-from-inheritance '("crypt") org-download-abbreviate-filename-function 'file-relative-name org-agenda-todo-ignore-scheduled 'future org-download-thumbnail-function 'org-download-thumbnail-default ) ------=_Part_86440_531980103.1565403175808 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =20 =20
--text follows this line--
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? = See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
-------------------------------------------------------------------= -----
When I capture more than one entry using a datetree with org-capture, i= t creates a new heading for that day, instead of using the existing one. On= ly happens when I'm using the "Brazilian Portuguese" locale on Mac OS. Work= ed fine on Linux.

For example, multiple entries today (Friday) resulted in this:

* 2019
** 2019-08
*** 2019-08-09 Sexta Feira
**** [2019-08-09 Sex 01:21] Entry 1
*** 2019-08-09 Sexta Feira
**** [2019-08-09 Sex 03:55] Entry 2
*** 2019-08-09 Sexta Feira
**** [2019-08-09 Sex 17:19] Entry 3

The "Sexta Feira" line was repeated.

I have a suspicion on the reason.

Mac OS reports the days of the week as two words (examples: "Quinta Fei= ra", "Sexta Feira"). I can check this by asking for "%A" when calling the `= time` command. Linux, on the other hand, return the days as one word ("quin= ta-feira", "sexta-feira").

So MAYBE it's related to the org-datetree-find-date-create function, th= at uses this regex: `"^\\*+[ \t]+%d-%02d-\\([0123][0-9]\\) \\w+$"`. Maybe t= hat `\w+` at the end is the reason? I'm not really sure.

Emacs : GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.2.0, NS appk= it-1671.20 Version 10.14.3 (Build 18D109))
of 2019-04-12

Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpa @ /Users/leon= ardo/.emacs.d/elpa/org-20190805/)

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-configure-edit-buffer)
org-after-todo-state-change-hook '(org-checklist)
org-blank-before-new-entry '((heading) (plain-list-item))
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-refile-targets '((nil :maxlevel . 7) (org-agenda-files :maxleve= l . 7))
org-download-annotate-function 'org-download-annotate-default
org-agenda-files '("~/org/organize.org" "~/org/errors_orgmode_commi= ts.org"
"~/org/jogos.org" "~/org/rpg.org" "~/org/bookmarks.org"
"~/org/inbox.org" "~/org/livros.org" "~/org/trabalho.org"
"~/org/blog.org" "~/org/escrita.org" "~/org/journal.org"
"~/org/journal_work.org" "~/org/receitas.org" "~/org/memacs/")
org-log-redeadline 'time
org-reveal-start-hook '(org-decrypt-entry)
org-modules '(org-protocol org-drill org-habit)
org-mode-hook '(#[0 "\301\211 \207"
[imenu-create-index-function org-imenu-get-tree] 2]
#[0 "\300\301\302\303\304$\207"
[add-hook before-save-hook org-encrypt-entries nil t] 5]
org-clock-load auto-fill-mode
#[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-clock-persist 'history
org-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-indented t
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-log-reschedule 'time
org-crypt-key "contato@leonardobighi.com"
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-h= eader-arg-expand)
org-babel-load-languages '((restclient . t) (emacs-lisp . t) (js . = t) (ruby . t)
(sql . t))
org-log-done 'time
org-checklist-export-function 'org-export-as-ascii
org-fontify-done-headline t
org-occur-hook '(org-first-headline-recenter)
org-agenda-window-setup 'current-window
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-em= pty-lines
org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate org-babel-speed= -command-activate)
org-tags-column -82
org-habit-graph-column 53
org-babel-tangle-lang-exts '(("ruby" . "rb") ("emacs-lisp" . "el") = ("elisp" . "el"))
org-return-follows-link t
org-confirm-shell-link-function 'yes-or-no-p
org-stuck-projects '("+TODO=3D\"PROJETO\"" ("NEXT") nil "")
org-link-parameters '(("id" :follow org-id-open) ("file+sys") ("fil= e+emacs")
("doi" :follow org--open-doi-link)
("elisp" :follow org--open-elisp-link)
("file" :complete org-file-complete-link)
("ftp" :follow
(lambda (path) (browse-url (concat "ftp:" path))))
("help" :follow org--open-help-link)
("http" :follow
(lambda (path) (browse-url (concat "http:" path))))
("https" :follow
(lambda (path) (browse-url (concat "https:" path))))
("mailto" :follow
(lambda (path) (browse-url (concat "mailto:" path))))
("news" :follow
(lambda (path) (browse-url (concat "news:" path))))
("shell" :follow org--open-shell-link))
org-capture-templates '(("t" "Tarefa" entry (file "inbox.org")
"* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
("j" "Di=C3=A1rio Pessoal" entry
(file+olp+datetree "journal.org") "* %U %?" :time-prompt t
:empty-lines 0 :time-prompt t)
("J" "Di=C3=A1rio de Trabalho" entry
(file+olp+datetree "journal_work.org") "* %U %?"
:time-prompt t)
("i" "Info to clocked Task" item (clock) "%i%?" :empty-lines
0)
("I" "Info to clocked Task" item (clock) "%c %?"
:empty-lines 0 :immediate-finish t)
("b" "Bookmark" entry (file+olp "bookmarks.org" "Inbox")
"* [[%:link][%:description]]\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n= %:link\n\n%:initial\n\n" :empty-lines 0)
("n" "Nota Pessoal" entry (file "inbox.org")
"* %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n" :empty-lines 0)
("c" "Compras" entry (file+olp+datetree "journal.org")
"* %U Comprei %? :COMPRAS:\n:PROPERTIES:\nPRICE:%^{pre=C3=A7o}\n:EN= D:" :time-prompt t)
)
org-clock-idle-time 5
org-habit-preceding-days 10
org-confirm-babel-evaluate nil
org-deadline-warning-days 5
org-agenda-custom-commands '(("w" todo "AGUARDANDO") ("C" todo "COM= PRAR")
("j" . "JOGOS")
("jj" "Quero jogar" tags-todo "+JOGO/!+JOGAR|+PAUSA")
("jc" "Comprar" tags-todo "+JOGO/DESEJO"
((org-agenda-sorting-strategy (quote (priority-down))))
)
("ja" "Prioridade A" tags-todo
"+JOGO+PRIORITY=3D\"A\"/-DESEJO"
((org-agenda-sorting-strategy (quote (todo-state-up))))
)
("jb" "Prioridade A ou B" tags-todo
"+JOGO+PRIORITY=3D{A\\|B}/-DESEJO"
((org-agenda-sorting-strategy
(quote (priority-down todo-state-up)))
)
)
("jn" "Estou jogando" tags-todo "+JOGO/JOGANDO")
("jJ" "Todos pra jogar" tags-todo
"+JOGO/!+JOGAR|+PAUSA|+BACKLOG"
((org-agenda-sorting
(quote (priority-down todo-state-up)))
)
)
("jr" "RPG pra jogar" tags-todo
"+JOGO+rpg/!+JOGAR|+PAUSA|+BACKLOG")
("jp" "Jogos em pausa" tags-todo "+JOGO/PAUSA")
("jt" "Terminei" tags "+JOGO/!+TERMINEI|+COMPLETEI")
("g" . "GTD tags")
("gc" tags-todo "+@casa"
((org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
("go" tags-todo "+@computador"
((org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
("gr" tags-todo "+@rua"
((org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
("gt" tags-todo "+@trabalho"
((org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
("ga" tags-todo "+@any"
((org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
("W" "Weekly Review"
((agenda "" ((org-agenda-ndays 7))) (stuck "")
(todo "NEXT") (todo "AGUARDANDO") (todo "PROJETO")
(todo "SOMEDAY"))
)
("p" "Projetos" todo "PROJETO")
("c" "Global Calendar"
((agenda "") (todo "AGUARDANDO") (todo "NEXT")
(tags-todo "@any") (tags-todo "@casa")
(tags-todo "@rua") (tags-todo "@trabalho")
(tags-todo "@computador")
(org-agenda-skip-function
(quote org-agenda-skip-if-scheduled-later))
)
)
)
org-directory "/Users/leonardo/org/"
org-tags-exclude-from-inheritance '("crypt")
org-download-abbreviate-filename-function 'file-relative-name
org-agenda-todo-ignore-scheduled 'future
org-download-thumbnail-function 'org-download-thumbnail-default
)
=20 ------=_Part_86440_531980103.1565403175808--