Re: [O] [BUG] agenda column view summaries missing in block agendas

2017-01-17 Thread Nicolas Goaziou
Hello,

Matt Lundin  writes:

> If one uses a custom agenda command with multiple blocks, column
> summaries in the agenda display do not display for all blocks.
>
> Steps to replicate:
>
> emacs -Q -l ~/minimal.el
>
> Where minimal contains
>
> (add-to-list 'load-path "~/org-mode/lisp/")
> (add-to-list 'load-path "~/org-mode/contrib/lisp/")
>
> (require 'org)
>
> (setq org-agenda-files '("~/test.org"))
>
> (setq org-columns-default-format
>   "%40ITEM(Task) %8Effort(Estimate){:} %8CLOCKSUM %20SCHEDULED 
> %20DEADLINE %20TIMESTAMP")
>
> (setq org-agenda-custom-commands
>   '(("n" "Now"
>((todo "TODO")
> (agenda "")
>
>
> and ~/test.org contains...
>
> * TODO Buy groceries
>   SCHEDULED: <2017-01-16 Mon>
>   :PROPERTIES:
>   :Effort:   0:10
>   :END:
> * TODO Mow lawn
>   SCHEDULED: <2017-01-16 Mon>
> * TODO Clean house
>   SCHEDULED: <2017-01-16 Mon>
>
>
> If I call the custom agenda command above and then org-agenda-columns,
> no summary data is displayed for the first block (the todo block).
> Summary data does appear at the top of the agenda block.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] [BUG] agenda column view summaries missing in block agendas

2017-01-16 Thread Matt Lundin
I'd like to report another bug in agenda column view summary displays.

If one uses a custom agenda command with multiple blocks, column
summaries in the agenda display do not display for all blocks.

Steps to replicate:

emacs -Q -l ~/minimal.el

Where minimal contains

--8<---cut here---start->8---
(add-to-list 'load-path "~/org-mode/lisp/")
(add-to-list 'load-path "~/org-mode/contrib/lisp/")

(require 'org)

(setq org-agenda-files '("~/test.org"))

(setq org-columns-default-format
  "%40ITEM(Task) %8Effort(Estimate){:} %8CLOCKSUM %20SCHEDULED %20DEADLINE 
%20TIMESTAMP")

(setq org-agenda-custom-commands
  '(("n" "Now"
 ((todo "TODO")
  (agenda "")
--8<---cut here---end--->8---

and ~/test.org contains...

--8<---cut here---start->8---
* TODO Buy groceries
  SCHEDULED: <2017-01-16 Mon>
  :PROPERTIES:
  :Effort:   0:10
  :END:
* TODO Mow lawn
  SCHEDULED: <2017-01-16 Mon>
* TODO Clean house
  SCHEDULED: <2017-01-16 Mon>
--8<---cut here---end--->8---

If I call the custom agenda command above and then org-agenda-columns,
no summary data is displayed for the first block (the todo block).
Summary data does appear at the top of the agenda block.

A git bisect reveals that this bug was introduced in 2015 with the
following commit. Earlier versions of org display independent column
summaries for all agenda blocks.

--8<---cut here---start->8---
f1ee487218da00962eb8b67d1f5ec1f54a5a04db is the first bad commit
commit f1ee487218da00962eb8b67d1f5ec1f54a5a04db

Author: Nicolas Goaziou 
Date:   Tue Jun 2 21:56:50 2015 +0200

org-colview: Handle user-defined inheritance in agenda colview

* lisp/org-colview.el (org-agenda-columns): Use `org-entry-get'
  instead of `org-entry-properties' to handle inheritance for
  user-provided properties.

:04 04 6348c8dd00846a942b50d6495800f5137c99620a 
eedfa94ed29964ee0af9ed22735fcef8158ebea8 M  lisp
--8<---cut here---end--->8---

Best,
Matt