emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-clocktable-write-default fails to display properties [9.0.7 (9.0.7-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20170515/)]
@ 2017-05-18 16:54 Fernando Varesi
  2017-05-19  7:11 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Fernando Varesi @ 2017-05-18 16:54 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone!

I'm trying to create a clocktable with the following header:

#+BEGIN: clocktable :scope file-with-archives :tstart "2017-05-17 14:00" :tend "<now>" :link t :fileskip0 t :properties ("TODO")

This should display every item with the TODO label (which was removed from headline in a recent release). However, the column is empty.

Doing some debugging I found out that org-clock-get-table-data does return the required properties. However, the default formatter (org-clocktable-write-default) fails to display it.

I think the problem is in line 2596:

	  ;; Get the list of node entries and iterate over it
	  (when (> maxlevel 0)
	    (pcase-dolist (`(,level ,headline ,ts ,time . ,props) entries)

Removing the . solves the issue, but I'm not sure what's the purpose of it. Any clues on the best way to fix this?

Thanks and keep up the good work!

Fernando.

Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.12)
 of 2017-04-23, modified by Debian
Package: Org mode version 9.0.7 (9.0.7-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20170515/)

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

* Re: Bug: org-clocktable-write-default fails to display properties [9.0.7 (9.0.7-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20170515/)]
  2017-05-18 16:54 Bug: org-clocktable-write-default fails to display properties [9.0.7 (9.0.7-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20170515/)] Fernando Varesi
@ 2017-05-19  7:11 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-05-19  7:11 UTC (permalink / raw)
  To: Fernando Varesi; +Cc: emacs-orgmode

Hello,

Fernando Varesi <fvaresi@gmail.com> writes:

> I'm trying to create a clocktable with the following header:
>
> #+BEGIN: clocktable :scope file-with-archives :tstart "2017-05-17 14:00" :tend "<now>" :link t :fileskip0 t :properties ("TODO")
>
> This should display every item with the TODO label (which was removed from headline in a recent release). However, the column is empty.
>
> Doing some debugging I found out that org-clock-get-table-data does return the required properties. However, the default formatter (org-clocktable-write-default) fails to display it.
>
> I think the problem is in line 2596:
>
> 	  ;; Get the list of node entries and iterate over it
> 	  (when (> maxlevel 0)
> 	    (pcase-dolist (`(,level ,headline ,ts ,time . ,props) entries)
>
> Removing the . solves the issue, but I'm not sure what's the purpose
> of it. Any clues on the best way to fix this?

This fix was already done in development branch. Since this is
a frequent request these day, I cherry-picked it onto maint branch.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2017-05-19  7:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 16:54 Bug: org-clocktable-write-default fails to display properties [9.0.7 (9.0.7-elpaplus @ /home/fvaresi/.emacs.d/elpa/org-plus-contrib-20170515/)] Fernando Varesi
2017-05-19  7:11 ` Nicolas Goaziou

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