emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2019-08-10  2:12 Leonardo Bighi Lourenco
  0 siblings, 0 replies; only message in thread
From: Leonardo Bighi Lourenco @ 2019-08-10  2:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 8050 bytes --]

--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 creates a new heading for that day, instead of using the existing one. Only happens when I'm using the "Brazilian Portuguese" locale on Mac OS. Worked 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 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-feira", "sexta-feira").

So MAYBE it's related to the org-datetree-find-date-create function, that uses 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/.emacs.d/elpa/org-20190805/)

current state:
==============
(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-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-empty-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=\"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ário Pessoal" entry
(file+olp+datetree "journal.org") "* %U %?" :time-prompt t
:empty-lines 0 :time-prompt t)
("J" "Diário 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ço}\n:END:" :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 "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=\"A\"/-DESEJO"
((org-agenda-sorting-strategy (quote (todo-state-up))))
)
("jb" "Prioridade A ou B" tags-todo
"+JOGO+PRIORITY={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
)

[-- Attachment #2: Type: text/html, Size: 10637 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-10  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-10  2:12 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/)] Leonardo Bighi Lourenco

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).