emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] agenda column view summaries missing in block agendas
@ 2017-01-16 22:02 Matt Lundin
  2017-01-17 11:02 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Lundin @ 2017-01-16 22:02 UTC (permalink / raw)
  To: Org Mode

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 <mail@nicolasgoaziou.fr>
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.

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

Best,
Matt

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

end of thread, other threads:[~2017-01-17 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-16 22:02 [BUG] agenda column view summaries missing in block agendas Matt Lundin
2017-01-17 11:02 ` 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).