From: Chen Zhang <darkbaby123@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: property "CLOCK_MODELINE_TOTAL" is not inherted
Date: Mon, 1 Jan 2018 20:00:10 +0800 [thread overview]
Message-ID: <CAJa+UW6YdJ5tmSq8GZ9twbfY-BsDDwL80Wa+ajBB_V=JiRV3vg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]
Hi all,
When using clock I prefer to set "CLOCK_MODELINE_TOTAL" to "current". Since
it's used frequently I want to set it as an upper level property (or a
global configuration). So I try to use property inheritance, but I failed.
After struggling 2 days I find the reason. The related function
"org-clock-get-sum-start" calls (org-entry-get nil "CLOCK_MODELINE_TOTAL")
to get the property value. But the INHERIT argument of org-entry-get is not
set. So this property doesn't use inheritance at all.
By checking the source I also found the variable
"org-clock-mode-line-total" can be used for global settings. So my problem
is partially solved.
During my investigation, I think the key problems are:
1. The Org manual only mentions CLOCK_MODELINE_TOTAL to change mode line
clock time. And it's easy to guide people like me to use property
inheritance to do global settings. But it doesn't work.
2. The org-clock-mode-line-total can be used as global settings. But it
doesn't mentioned in Org manual at all.
So I suggest to change code to something like (org-entry-get nil
"CLOCK_MODELINE_TOTAL" t) to use inheritance. If inheritance has to be
disabled for some reason (e.g performance). It's better to tell users in
the Org manual.
GNU Emacs 25.3.1 (x86_64-apple-darwin17.0.0, NS appkit-1561.00 Version
10.13 (Build 17A405)) of 2017-11-07
Org mode version 9.1.4
Regards,
David Chen
[-- Attachment #2: Type: text/html, Size: 1740 bytes --]
next reply other threads:[~2018-01-01 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-01 12:00 Chen Zhang [this message]
2018-01-03 21:57 ` Bug: property "CLOCK_MODELINE_TOTAL" is not inherted Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJa+UW6YdJ5tmSq8GZ9twbfY-BsDDwL80Wa+ajBB_V=JiRV3vg@mail.gmail.com' \
--to=darkbaby123@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.