* Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)]
@ 2020-05-05 18:38 Alois Janíček
2020-05-16 18:44 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Alois Janíček @ 2020-05-05 18:38 UTC (permalink / raw)
To: emacs-orgmode
When attempting to generate clock-report using ":scope
file-with-archives" from indirect org buffer, operation fails because
function `org-dblock-write:clocktable` builds list of files based on
`buffer-file-name` variable which is `nil` in indirect buffers.
As user I am expecting org-clock to generate clock-report for current
indirect org buffer as if it was direct buffer, which is default behavior
in case of ":scope file" where `org-dblock-write:clocktable` does:
(or (buffer-file-name (buffer-base-buffer))
(current-buffer))
Emacs : GNU Emacs 27.0.91 (build 3, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.17.3)
of 2020-05-03
Package: Org mode version 9.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)]
2020-05-05 18:38 Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)] Alois Janíček
@ 2020-05-16 18:44 ` Nicolas Goaziou
2020-05-25 20:54 ` Alois Janíček
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-05-16 18:44 UTC (permalink / raw)
To: Alois Janíček; +Cc: emacs-orgmode
Hello,
Alois Janíček <janicek.dev@gmail.com> writes:
> When attempting to generate clock-report using ":scope
> file-with-archives" from indirect org buffer, operation fails because
> function `org-dblock-write:clocktable` builds list of files based on
> `buffer-file-name` variable which is `nil` in indirect buffers.
I pushed a fix in master. Could you try it?
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)]
2020-05-16 18:44 ` Nicolas Goaziou
@ 2020-05-25 20:54 ` Alois Janíček
0 siblings, 0 replies; 3+ messages in thread
From: Alois Janíček @ 2020-05-25 20:54 UTC (permalink / raw)
To: Alois Janíček, emacs-orgmode
I apologize that I got to this so late,
I tested it and it works, issue is fixed, with, I must say, nice and
systematic approach.
Thank you.
On Sat, May 16, 2020 at 8:44 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Alois Janíček <janicek.dev@gmail.com> writes:
>
> > When attempting to generate clock-report using ":scope
> > file-with-archives" from indirect org buffer, operation fails because
> > function `org-dblock-write:clocktable` builds list of files based on
> > `buffer-file-name` variable which is `nil` in indirect buffers.
>
> I pushed a fix in master. Could you try it?
>
> Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-25 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-05 18:38 Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)] Alois Janíček
2020-05-16 18:44 ` Nicolas Goaziou
2020-05-25 20:54 ` Alois Janíček
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.