emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: org-clock-report tag matching seems to be broken [9.1.9 (releas


From: Nick Dokos
Subject: Re: Bug: org-clock-report tag matching seems to be broken [9.1.9 (release_9.1.9-65-g5e4542 @ c:/Users/user/emacs-26.3-x86_64/share/emacs/26.3/lisp/org/)]
Date: Tue, 10 Aug 2021 20:51:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Lewalder, Sebastian" via "General discussions about Org-mode." 
<emacs-orgmode@gnu.org> writes:

> I recently updated my packages and after the update the clock tables are
>
> not working anymore. I reran an report from june and here too the
>
> matching didn't work anymore.
>
> #+BEGIN: clocktable :scope file :maxlevel 4 :match "traj"

IIUC, the problem is the presence of both `maxlevel' and `match' specifiers:
the code does not handle that case correctly.

You might want to try a patch that I submitted some time ago to fix that:

    https://orgmode.org/list/87h7h0w5nz.fsf@alphaville.usersys.redhat.com/

I believe this is the second time that this problem has been reported
to the mailing list since then (plus there was a question about the
same problem on Emacs SE), so if you can review it and/or try it out,
that might help to get it reviewed and merged.

If anybody else is willing to review it as well, I'd appreciate it.

Thanks!
--
Nick

>
> #+CAPTION: Clock summary at [2021-08-06 Fr 08:48]
>
> | Headline                  | Time   |      |      |      |
>
> |---------------------------+--------+------+------+------|
>
> | *Total time*              | *2:33* |      |      |      |
>
> |---------------------------+--------+------+------+------|
>
> | 2021                      | 2:33   |      |      |      |
>
> | \_  2021-06 Juni          |        | 2:33 |      |      |
>
> | \_    2021-06-01 Dienstag |        |      | 2:33 |      |
>
> | \_      Trajectory calc   |        |      |      | 0:41 |
>
> | \_      Concept work      |        |      |      | 1:52 |
>
> #+END:
>
> * 2021
>
> ** 2021-06 Juni
>
> *** 2021-06-01 Dienstag
>
> **** Trajectory calc                                                   :traj:
>
>      :LOGBOOK:
>
>      CLOCK: [2021-06-01 Di 11:40]--[2021-06-01 Di 12:21] =>  0:41
>
>      :END:
>
> **** Concept work                                                      
> :concept:
>
>      :LOGBOOK:
>
>      CLOCK: [2021-06-01 Di 13:10]--[2021-06-01 Di 13:24] =>  0:14
>
>      CLOCK: [2021-06-01 Di 12:21]--[2021-06-01 Di 12:41] =>  0:20
>
>      CLOCK: [2021-06-01 Di 10:22]--[2021-06-01 Di 11:40] =>  1:18
>
>      :END:
>
> Emacs  : GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
>
> of 2019-08-29
>
> Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ 
> c:/Users/user/emacs-26.3-x86_64/share/emacs/26.3/lisp/org/)
>
> 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-clock-out-if-current)
>
> org-metadown-hook '(org-babel-pop-to-session-maybe)
>
> org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
>
> org-agenda-files '("~/org")
>
> org-modules '(org-habit)
>
> org-mode-hook '(er/add-org-mode-expansions
>
>                  #[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
>
>                  #[nil "\300\301!\207" [run-hooks prelude-org-mode-hook] 2])
>
> 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-babel-pre-tangle-hook '(save-buffer)
>
> org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
> org-babel-header-arg-expand)
>
> org-log-done 'time
>
> org-habit-show-habits-only-for-today nil
>
> org-occur-hook '(org-first-headline-recenter)
>
> 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-confirm-shell-link-function 'yes-or-no-p
>
> 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))
>
> )
>

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]