emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2021-08-06  6:54 Lewalder, Sebastian via General discussions about Org-mode.
  2021-08-11  0:51 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Lewalder, Sebastian via General discussions about Org-mode. @ 2021-08-06  6:54 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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"

#+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))

)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  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
  2022-12-02  6:17   ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2021-08-11  0:51 UTC (permalink / raw)
  To: emacs-orgmode

"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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* 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/)]
  2021-08-11  0:51 ` Nick Dokos
@ 2022-12-02  6:17   ` Ihor Radchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-12-02  6:17 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode

Nick Dokos <ndokos@gmail.com> writes:

> 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/

For record, the referenced patch has been merged.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1690fbd88

I assume that the issue herein is also fixed.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-02 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2022-12-02  6:17   ` Ihor Radchenko

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