From: Michael Brand <michael.ch.brand@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: column view sum scope
Date: Thu, 28 Jul 2011 13:41:15 +0200 [thread overview]
Message-ID: <CALn3zoj092mqRZWcJUoAWL+-p=bXkiscq41HQo6NaT6yCYsQmg@mail.gmail.com> (raw)
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
reply other threads:[~2011-07-28 11:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CALn3zoj092mqRZWcJUoAWL+-p=bXkiscq41HQo6NaT6yCYsQmg@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).