From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <875ywcdcsj.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 1f512066029b46c7941f1f92bd128a14@tms-bonn.de
"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
next prev parent reply other threads:[~2021-08-11 0:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-06 6:54 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/)] Lewalder, Sebastian via General discussions about Org-mode.
2021-08-11 0:51 ` Nick Dokos [this message]
2022-12-02 6:17 ` 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=875ywcdcsj.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).