org-clock-agg: try to fix buttons display

This commit is contained in:
Pavel Korytov 2023-12-19 23:22:56 +03:00
parent 86c2583bc3
commit 7a77bb3540

View file

@ -121,8 +121,8 @@ The following format specifiers are available:
`:readable-name' parameter) `:readable-name' parameter)
- %z - time spent in the node according to - %z - time spent in the node according to
`org-clock-agg-duration-format' `org-clock-agg-duration-format'
- %s - time share of the node against the parent node - %S - time share of the node against the parent node
- %S - time share of the node against the top-level node - %s - time share of the node against the top-level node
Refer to `format-spec' for available modifiers. Refer to `format-spec' for available modifiers.
@ -1253,6 +1253,10 @@ available group and sort functions; use `org-clock-agg-defgroupby' and
(:extra-params . ,extra-params))) (:extra-params . ,extra-params)))
(let ((inhibit-read-only t)) (let ((inhibit-read-only t))
(org-clock-agg--render-controls) (org-clock-agg--render-controls)
;; XXX No idea why, but setting these variables with let
;; doesn't work when the package is loaded.
(setq-local widget-push-button-prefix "")
(setq-local widget-push-button-suffix "")
(org-clock-agg-refresh)) (org-clock-agg-refresh))
(goto-char (point-min))))) (goto-char (point-min)))))