From mboxrd@z Thu Jan 1 00:00:00 1970 From: rrandresf@gmail.com Subject: Bug: problem with org-agenda and categories [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)] Date: Fri, 06 Jul 2018 13:19:51 +0000 Message-ID: <86601sh56w.fsf@sacsa.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbQfP-0006pl-Kv for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 09:20:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbQfM-0006DA-FP for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 09:20:55 -0400 Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:37894) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbQfM-0006Ck-8u for emacs-orgmode@gnu.org; Fri, 06 Jul 2018 09:20:52 -0400 Received: by mail-vk0-x232.google.com with SMTP id b77-v6so6799171vkb.5 for ; Fri, 06 Jul 2018 06:20:52 -0700 (PDT) Received: from sacsa ([181.64.192.154]) by smtp.gmail.com with ESMTPSA id j37-v6sm272332uag.25.2018.07.06.06.20.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 06:20:49 -0700 (PDT) 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 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 evaluating the snippet below: --8<---------------cut here---------------start------------->8--- (eval-after-load "org" '(progn ;;;; overwrite some settings (setq org-startup-folded nil ;unfolded org-agenda-show-all-dates t org-confirm-elisp-link-function nil ;; 4 the scratch call org-agenda-include-diary t org-agenda-include-all-todo t ) (when (file-directory-p "~/docs/org/deft/") (setq org-agenda-files (directory-files "~/docs/org/deft/" t ".*agen= datest\.org$")) ) (define-key org-mode-map (kbd "M-a") nil) )) (require 'org) (funcall 'org-agenda-list) --8<---------------cut here---------------end--------------->8--- I am getting (which is not fine): --8<---------------cut here---------------start------------->8--- Week-agenda (W27): Monday 2 July 2018 W27 final: 9:00...... wc: 1eBrazil - 2fMexico (samara){16} final: 13:00...... wc: 1gBelgica - 2hJapon (rostov){16} Tuesday 3 July 2018 final: 9:00...... wc: 2eSuiza - 1fSuecia (san petersburgo){16} final: 13:00...... wc: 2gInglaterra - 1hColombia (moscu){16} Wednesday 4 July 2018 Diary: Independence Day Thursday 5 July 2018 Friday 6 July 2018 0:38...... now - - - - - - - - - - - - - - - - - - - - - - -= - - 8:00...... ---------------- final: 9:00...... wc: 1qfFrancia - 2qfUruguay (nizhny){4} 10:00...... ---------------- 12:00...... ---------------- final: 13:00...... wc: 5qfBrasil - 6qfBelgica (kaz=C3=A1n){4} 14:00...... ---------------- 16:00...... ---------------- 18:00...... ---------------- 20:00...... ---------------- Saturday 7 July 2018 final: 9:00...... wc: 7qfRusia - 8qfCrocia (samara){4} final: 13:00...... wc: 3qfSuecia - 4qfInglaterra (sochi){4} Sunday 8 July 2018 --8<---------------cut here---------------end--------------->8--- the output should be: --8<---------------cut here---------------start------------->8--- Week-agenda (W27): Monday 2 July 2018 W27 8: 9:00...... wc: 1eBrazil - 2fMexico (samara){16} 8: 13:00...... wc: 1gBelgica - 2hJapon (rostov){16} Tuesday 3 July 2018 8: 9:00...... wc: 2eSuiza - 1fSuecia (san petersburgo){16} 8: 13:00...... wc: 2gInglaterra - 1hColombia (moscu){16} Wednesday 4 July 2018 Diary: Independence Day Thursday 5 July 2018 Friday 6 July 2018 4: 9:00...... wc: 1qfFrancia - 2qfUruguay (nizhny){4} 4: 13:00...... wc: 5qfBrasil - 6qfBelgica (kaz=C3=A1n){4} Saturday 7 July 2018 4: 9:00...... wc: 7qfRusia - 8qfCrocia (samara){4} 4: 13:00...... wc: 3qfSuecia - 4qfInglaterra (sochi){4} Sunday 8 July 2018 --8<---------------cut here---------------end--------------->8--- the file ~/docs/org/deft/jl-diary.agendatest.org: --8<---------------cut here---------------start------------->8--- * the world cup on my agenda #+CATEGORY: groups %%(diary-block 6 22 2018 6 22 2018) 7:00 wc: brazil - costa rica (sans pete= rsburgo){GE2} %%(diary-block 6 22 2018 6 22 2018) 10:00 wc: nigeria - islanda (volgogrado= ){GD2} %%(diary-block 6 22 2018 6 22 2018) 13:00 wc: serbia - suiza (kaliningrado)= {GE2} %%(diary-block 6 23 2018 6 23 2018) 07:00 wc: belgica - tunez (otkrytiye, m= oscu){GG2} %%(diary-block 6 23 2018 6 23 2018) 10:00 wc: mexico - korea (rostov){GF2} %%(diary-block 6 23 2018 6 23 2018) 13:00 wc: alemania - suecia (sochi){GF2} %%(diary-block 6 24 2018 6 24 2018) 07:00 wc: inglaterra - panama (nizhny){= GG2} %%(diary-block 6 24 2018 6 24 2018) 10:00 wc: japon - senegal (ekaterimburg= o){GH2} %%(diary-block 6 24 2018 6 24 2018) 13:00 wc: colombia - polonia (kaz=C3=A1= n){GH2} %%(diary-block 6 25 2018 6 25 2018) 09:00 wc: uruguay - rusia (samara){GA3} %%(diary-block 6 25 2018 6 25 2018) 09:00 wc: egipto - arabia (volgogrado){= GA3} %%(diary-block 6 25 2018 6 25 2018) 13:00 wc: portugal - iran (saransk){GB3} %%(diary-block 6 25 2018 6 25 2018) 13:00 wc: espanha - marruecos (kalining= rado){GB3} %%(diary-block 6 26 2018 6 26 2018) 09:00 wc: Dinamarca - francia (luzhniki= , moscu){GC3} %%(diary-block 6 26 2018 6 26 2018) 09:00 wc: PER=C3=99 - australia (sochi)= {GC3} %%(diary-block 6 26 2018 6 26 2018) 13:00 wc: argentina - nigeria (san pete= rsburgo){GD3} %%(diary-block 6 26 2018 6 26 2018) 13:00 wc: croacia - islandia (rostov){G= D3} %%(diary-block 6 27 2018 6 27 2018) 09:00 wc: corea - alemania (kaz=C3=A1n)= {GF3} %%(diary-block 6 27 2018 6 27 2018) 09:00 wc: mexico - suecia (ekaterimburg= o){GF3} %%(diary-block 6 27 2018 6 27 2018) 13:00 wc: brazil - serbia (otkrytiye, m= oscu){GE3} %%(diary-block 6 27 2018 6 27 2018) 13:00 wc: suiza - costa rica (nizhny){= GE3} %%(diary-block 6 28 2018 6 28 2018) 09:00 wc: polonia - japon (volgogrado){= GH3} %%(diary-block 6 28 2018 6 28 2018) 09:00 wc: colombia - senegal (samara){G= H3} %%(diary-block 6 28 2018 6 28 2018) 13:00 wc: inglaterra - belgica (kalinin= grado){GG3} %%(diary-block 6 28 2018 6 28 2018) 13:00 wc: panama - tunez (saransk){GG3} #+CATEGORY: 8 %%(diary-block 6 30 2018 6 30 2018) 09:00 wc: 1cFrancia - 2dArgentina (kaz= =C3=A1n){16} %%(diary-block 6 30 2018 6 30 2018) 13:00 wc: 1aUruguay -2bPortugal (sochi)= {16} %%(diary-block 7 01 2018 7 01 2018) 09:00 wc: 2aRusia - 1bEspa=C3=B1a (mosc= u){16} %%(diary-block 7 01 2018 7 01 2018) 13:00 wc: 2cDinamarca - 1dCroacia (nizh= ny){16} %%(diary-block 7 02 2018 7 02 2018) 09:00 wc: 1eBrazil - 2fMexico (samara){= 16} %%(diary-block 7 02 2018 7 02 2018) 13:00 wc: 1gBelgica - 2hJapon (rostov){= 16} %%(diary-block 7 03 2018 7 03 2018) 09:00 wc: 2eSuiza - 1fSuecia (san peter= sburgo){16} %%(diary-block 7 03 2018 7 03 2018) 13:00 wc: 2gInglaterra - 1hColombia (mo= scu){16} #+CATEGORY: 4 %%(diary-block 7 06 2018 7 06 2018) 09:00 wc: 1qfFrancia - 2qfUruguay (nizh= ny){4} %%(diary-block 7 06 2018 7 06 2018) 13:00 wc: 5qfBrasil - 6qfBelgica (kaz= =C3=A1n){4} %%(diary-block 7 07 2018 7 07 2018) 09:00 wc: 7qfRusia - 8qfCrocia (samara)= {4} %%(diary-block 7 07 2018 7 07 2018) 13:00 wc: 3qfSuecia - 4qfInglaterra (so= chi){4} #+CATEGORY: semi-final %%(diary-block 7 10 2018 7 10 2018) 09:00 wc: 1sf - 2sf (san petersburgo){S= F} %%(diary-block 7 11 2018 7 11 2018) 09:00 wc: 3sf - 4sf (moscu){SF} #+CATEGORY: final %%(diary-block 7 14 2018 7 14 2018) 09:00 wc: 1p - 2p (san petersburgo){F} %%(diary-block 7 15 2018 7 15 2018) 09:00 wc: 1f - 2f (luzhniki, moscu){F} --8<---------------cut here---------------end--------------->8--- Emacs : GNU Emacs 26.1 (build 2, armv7l-unknown-linux-gnueabihf, X toolkit= , Xaw3d scroll bars) of 2018-06-28 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emac= s/26.1/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-after-todo-state-change-hook '(org-clock-out-if-current) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-archive-hook '(org-attach-archive-delete-maybe) org-agenda-include-diary t org-agenda-files '("/home/olla/docs/org/deft/jl-diary.agendatest.org") org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-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-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-metaup-hook '(org-babel-load-in-session-maybe) org-startup-folded nil org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n= (fn ENTRY)"] org-confirm-shell-link-function 'yes-or-no-p org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-parameters '(("id" :follow org-id-open) ("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) ("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) ("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-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function nil org-metadown-hook '(org-babel-pop-to-session-maybe) )