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