From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: column view sum scope Date: Thu, 28 Jul 2011 13:41:15 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmOxq-0007Ej-Q7 for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 07:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmOxp-0005jT-Jh for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 07:41:18 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:36401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmOxp-0005jD-EG for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 07:41:17 -0400 Received: by wyg36 with SMTP id 36so64857wyg.0 for ; Thu, 28 Jul 2011 04:41:15 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode , Carsten Dominik Hi all, hi Carsten I have an issue with the column view sum scope that can be shown best with a minimal word count example: #+begin_src org ,#+COLUMNS: %14ITEM %18word_count(sum of word counts){+} ,- dynamic block for column view: , #+BEGIN: columnview , #+END: ,* article ,** section , :PROPERTIES: , :word_count: 2 , :END: , First_word, second_word. ,*** subsection , :PROPERTIES: , :word_count: 1 , :END: , Third_word. #+end_src After "C-c C-c" on "#+BEGIN:" I would like both ":word_count:" to be left unchanged, leading to a section sum and article sum of 3: #+begin_src org ,#+COLUMNS: %14ITEM %18word_count(sum of word counts){+} ,- dynamic block for column view: , #+BEGIN: columnview , | ITEM | sum of word counts | , |----------------+--------------------| , | * article | 3 | , | ** section | 3 | , | *** subsection | 1 | , #+END: ,* article ,** section , :PROPERTIES: , :word_count: 2 , :END: , First_word, second_word. ,*** subsection , :PROPERTIES: , :word_count: 1 , :END: , Third_word. #+end_src but what one gets is the first ":word_count:" interpreted as only the total of all _subsections_, leading to a section sum and article sum of 1: #+begin_src org ,#+COLUMNS: %14ITEM %18word_count(sum of word counts){+} ,- dynamic block for column view: , #+BEGIN: columnview , | ITEM | sum of word counts | , |----------------+--------------------| , | * article | 1 | , | ** section | 1 | , | *** subsection | 1 | , #+END: ,* article ,** section , :PROPERTIES: , :word_count: 1 , :END: , First_word, second_word. ,*** subsection , :PROPERTIES: , :word_count: 1 , :END: , Third_word. #+end_src As I understand, org-wc.el from the word count thread http://thread.gmane.org/gmane.emacs.orgmode/41146/focus=42663 suffers from the same problem. The terms curval, curtotal and prevtotal found here http://thread.gmane.org/gmane.emacs.orgmode/12067 look like what one needs here. But I couldn't find neither these terms in any org/lisp/*.el nor any related commit around the time of the post above. Carsten, do you remember this? Now I would be glad to hear any thoughts and hints. Michael