emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* CLOCKSUM counts appointments excluded by tag
@ 2014-12-04 22:58 Myles English
  2014-12-09 21:35 ` Myles English
  0 siblings, 1 reply; 4+ messages in thread
From: Myles English @ 2014-12-04 22:58 UTC (permalink / raw)
  To: Emacs-orgmode

Hello,

I am using git master from yesterday (commit 6d2a661f) and have found
that when the agenda is narrowed by tag (i.e. all appointments marked
with a certain tag are excluded), the clocksum still shows the
un-narrowed total.  Is this the correct behaviour, or a bug?

Selected variables:

org-agenda-columns-add-appointments-to-effort-sum is t
org-columns-default-format:
"%80ITEM(Task) %10Effort(Effort){:} %10Duration(Duration){:} %10CLOCKSUM"

org-global-properties:
(("Effort_ALL" . "0:00 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00 16:00 24:00 32:00"))

Test org file:

;;,------------------------------------------------------------------------------
;;| * Nail org mode bug                                                          
;;|   SCHEDULED: <2014-12-04 Thu 9:00-10:00>                                     
;;|                                                                              
;;| * Earn money                                                         :spouse:
;;|   SCHEDULED: <2014-12-04 Thu 09:00-20:00>                                    
;;|                                                                              
;;| * Drink tea                                                                  
;;|   SCHEDULED: <2014-12-04 Thu 10:00-16:00>                                    
;;`------------------------------------------------------------------------------


C-c a < a       ;; get the agenda for the current test file
C-c C-x C-c     ;; turn on column view

;;,------------------------------------------------------------------
;;| Thursday    4 December 2014                             | 18:00 |
;;|                8:00...... ----------------                       
;;| * Nail org mode bug                                     | 1:00  |
;;| * Earn money                                            | 11:00 |
;;| * Drink tea                                             | 6:00  |
;;`------------------------------------------------------------------


/ - TAB 'spouse' ;; narrow by excluding the item tagged 'spouse'

See how the 18:00 has counted the 11:00 that should have been excluded:

;;,------------------------------------------------------------------
;;| Thursday    4 December 2014                             | 18:00 |
;;|                8:00...... ----------------                       
;;| * Nail org mode bug                                     | 1:00  |
;;| * Drink tea                                             | 6:00  |
;;`------------------------------------------------------------------

I would have expected something this:

;;,-----------------------------------------------------------------
;;| Thursday    4 December 2014                             | 7:00 |
;;|                8:00...... ----------------                       
;;| * Nail org mode bug                                     | 1:00 |
;;| * Drink tea                                             | 6:00 |
;;`-----------------------------------------------------------------

and am therefore disappointed.

I haven't investigated if this happens for simple clocked time as well
as appointments yet.

Myles

P.S. Sorry for the ugly boxes, I can't remember how to get the nice
ones.

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

* Re: CLOCKSUM counts appointments excluded by tag
  2014-12-04 22:58 CLOCKSUM counts appointments excluded by tag Myles English
@ 2014-12-09 21:35 ` Myles English
  2014-12-09 22:48   ` Myles English
  0 siblings, 1 reply; 4+ messages in thread
From: Myles English @ 2014-12-09 21:35 UTC (permalink / raw)
  To: Emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3140 bytes --]

I made a mistake in my first mail: the totals are for the Effort property
not CLOCKSUM.

Can no one confirm this?  Is there something else wrong with my post?  The
situation is the same after pulling from master today.


On 4 December 2014 at 22:58, Myles English <mylesenglish@gmail.com> wrote:

> Hello,
>
> I am using git master from yesterday (commit 6d2a661f) and have found
> that when the agenda is narrowed by tag (i.e. all appointments marked
> with a certain tag are excluded), the clocksum still shows the
> un-narrowed total.  Is this the correct behaviour, or a bug?
>
> Selected variables:
>
> org-agenda-columns-add-appointments-to-effort-sum is t
> org-columns-default-format:
> "%80ITEM(Task) %10Effort(Effort){:} %10Duration(Duration){:} %10CLOCKSUM"
>
> org-global-properties:
> (("Effort_ALL" . "0:00 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00
> 16:00 24:00 32:00"))
>
> Test org file:
>
>
> ;;,------------------------------------------------------------------------------
> ;;| * Nail org mode bug
> ;;|   SCHEDULED: <2014-12-04 Thu 9:00-10:00>
> ;;|
> ;;| * Earn money
>  :spouse:
> ;;|   SCHEDULED: <2014-12-04 Thu 09:00-20:00>
> ;;|
> ;;| * Drink tea
> ;;|   SCHEDULED: <2014-12-04 Thu 10:00-16:00>
>
> ;;`------------------------------------------------------------------------------
>
>
> C-c a < a       ;; get the agenda for the current test file
> C-c C-x C-c     ;; turn on column view
>
> ;;,------------------------------------------------------------------
> ;;| Thursday    4 December 2014                             | 18:00 |
> ;;|                8:00...... ----------------
> ;;| * Nail org mode bug                                     | 1:00  |
> ;;| * Earn money                                            | 11:00 |
> ;;| * Drink tea                                             | 6:00  |
> ;;`------------------------------------------------------------------
>
>
> / - TAB 'spouse' ;; narrow by excluding the item tagged 'spouse'
>
> See how the 18:00 has counted the 11:00 that should have been excluded:
>
> ;;,------------------------------------------------------------------
> ;;| Thursday    4 December 2014                             | 18:00 |
> ;;|                8:00...... ----------------
> ;;| * Nail org mode bug                                     | 1:00  |
> ;;| * Drink tea                                             | 6:00  |
> ;;`------------------------------------------------------------------
>
> I would have expected something this:
>
> ;;,-----------------------------------------------------------------
> ;;| Thursday    4 December 2014                             | 7:00 |
> ;;|                8:00...... ----------------
> ;;| * Nail org mode bug                                     | 1:00 |
> ;;| * Drink tea                                             | 6:00 |
> ;;`-----------------------------------------------------------------
>
> and am therefore disappointed.
>
> I haven't investigated if this happens for simple clocked time as well
> as appointments yet.
>
> Myles
>
> P.S. Sorry for the ugly boxes, I can't remember how to get the nice
> ones.
>
>

[-- Attachment #2: Type: text/html, Size: 4135 bytes --]

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

* Re: CLOCKSUM counts appointments excluded by tag
  2014-12-09 21:35 ` Myles English
@ 2014-12-09 22:48   ` Myles English
  2015-01-16  9:00     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Myles English @ 2014-12-09 22:48 UTC (permalink / raw)
  To: Emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4049 bytes --]

On 9 December 2014 at 21:35, Myles English <mylesenglish@gmail.com> wrote:

> I made a mistake in my first mail: the totals are for the Effort property
> not CLOCKSUM.
>
> Can no one confirm this?  Is there something else wrong with my post?  The
> situation is the same after pulling from master today.
>
>
> On 4 December 2014 at 22:58, Myles English <mylesenglish@gmail.com> wrote:
>
>> Hello,
>>
>> I am using git master from yesterday (commit 6d2a661f) and have found
>> that when the agenda is narrowed by tag (i.e. all appointments marked
>> with a certain tag are excluded), the clocksum still shows the
>> un-narrowed total.  Is this the correct behaviour, or a bug?
>>
>> Selected variables:
>>
>> org-agenda-columns-add-appointments-to-effort-sum is t
>> org-columns-default-format:
>> "%80ITEM(Task) %10Effort(Effort){:} %10Duration(Duration){:} %10CLOCKSUM"
>>
>> org-global-properties:
>> (("Effort_ALL" . "0:00 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00
>> 16:00 24:00 32:00"))
>>
>> Test org file:
>>
>>
>> ;;,------------------------------------------------------------------------------
>> ;;| * Nail org mode bug
>> ;;|   SCHEDULED: <2014-12-04 Thu 9:00-10:00>
>> ;;|
>> ;;| * Earn money
>>  :spouse:
>> ;;|   SCHEDULED: <2014-12-04 Thu 09:00-20:00>
>> ;;|
>> ;;| * Drink tea
>> ;;|   SCHEDULED: <2014-12-04 Thu 10:00-16:00>
>>
>> ;;`------------------------------------------------------------------------------
>>
>>
>> C-c a < a       ;; get the agenda for the current test file
>> C-c C-x C-c     ;; turn on column view
>>
>> ;;,------------------------------------------------------------------
>> ;;| Thursday    4 December 2014                             | 18:00 |
>> ;;|                8:00...... ----------------
>> ;;| * Nail org mode bug                                     | 1:00  |
>> ;;| * Earn money                                            | 11:00 |
>> ;;| * Drink tea                                             | 6:00  |
>> ;;`------------------------------------------------------------------
>>
>>
>> / - TAB 'spouse' ;; narrow by excluding the item tagged 'spouse'
>>
>> See how the 18:00 has counted the 11:00 that should have been excluded:
>>
>> ;;,------------------------------------------------------------------
>> ;;| Thursday    4 December 2014                             | 18:00 |
>> ;;|                8:00...... ----------------
>> ;;| * Nail org mode bug                                     | 1:00  |
>> ;;| * Drink tea                                             | 6:00  |
>> ;;`------------------------------------------------------------------
>>
>> I would have expected something this:
>>
>> ;;,-----------------------------------------------------------------
>> ;;| Thursday    4 December 2014                             | 7:00 |
>> ;;|                8:00...... ----------------
>> ;;| * Nail org mode bug                                     | 1:00 |
>> ;;| * Drink tea                                             | 6:00 |
>> ;;`-----------------------------------------------------------------
>>
>> and am therefore disappointed.
>>
>> I haven't investigated if this happens for simple clocked time as well
>> as appointments yet.
>>
>
Yes, I can see similar behaviour for clocked tasks.  That is to say, with
this file contents:

#+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM
* TODO Earn money
  :PROPERTIES:
  :Effort:   0:10
  :END:

* TODO Drink tea                              :a:
  :PROPERTIES:
  :Effort:   0:30
  :END:

#start emacs
$ emacs -Q

M-x org-agenda
<                 ;; narrow to current buffer
t                   ;; see all TODOs
C-c C-x C-c  ;; see column view
/  - TAB a     ;; exclude the item tagged :a:

And the result looks something like this:

Task                                                       | Estimated
Effort
____________________________________________________
Global list of TODO items of type: ALL
Available with `N r': (0)[ALL] (1)TODO   | 0:40
  TODO Earn money                              | 0:10


Myles

[-- Attachment #2: Type: text/html, Size: 5572 bytes --]

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

* Re: CLOCKSUM counts appointments excluded by tag
  2014-12-09 22:48   ` Myles English
@ 2015-01-16  9:00     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2015-01-16  9:00 UTC (permalink / raw)
  To: Myles English; +Cc: Emacs-orgmode

Hello,

Myles English <mylesenglish@gmail.com> writes:

> Yes, I can see similar behaviour for clocked tasks.  That is to say, with
> this file contents:
>
> #+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM
> * TODO Earn money
>   :PROPERTIES:
>   :Effort:   0:10
>   :END:
>
> * TODO Drink tea                              :a:
>   :PROPERTIES:
>   :Effort:   0:30
>   :END:
>
> #start emacs
> $ emacs -Q
>
> M-x org-agenda
> <                 ;; narrow to current buffer
> t                   ;; see all TODOs
> C-c C-x C-c  ;; see column view
> /  - TAB a     ;; exclude the item tagged :a:
>
> And the result looks something like this:
>
> Task                                                       | Estimated
> Effort
> ____________________________________________________
> Global list of TODO items of type: ALL
> Available with `N r': (0)[ALL] (1)TODO   | 0:40
>   TODO Earn money                              | 0:10

AFAICT, it seems this feature is not implemented. Org uses a cache to
record sums (e.g. clocksum), which is not updated when a filter is
applied.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2015-01-16  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-04 22:58 CLOCKSUM counts appointments excluded by tag Myles English
2014-12-09 21:35 ` Myles English
2014-12-09 22:48   ` Myles English
2015-01-16  9:00     ` 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).