From: Carsten Dominik <carsten.dominik@gmail.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Bug] Doc string for org-clock-into-drawer truncated?
Date: Tue, 21 Jun 2011 09:49:53 +0200 [thread overview]
Message-ID: <875E1ACA-B404-4783-95B3-3EAE52759E0C@gmail.com> (raw)
In-Reply-To: <87sjr470yn.fsf@Rainer.invalid>
On Jun 20, 2011, at 9:32 PM, Achim Gratz wrote:
>
> In org-clock.el, the following definition is found:
>
> (defcustom org-clock-into-drawer org-log-into-drawer
> "Should clocking info be wrapped into a drawer?
> When t, clocking info will always be inserted into a :LOGBOOK: drawer.
> If necessary, the drawer will be created.
> When nil, the drawer will not be created, but used when present.
> When an integer and the number of clocking entries in an item
> reaches or exceeds this number, a drawer will be created.
> When a string, it names the drawer to be used.
>
> The default for this variable is the value of `org-log-into-drawer',
> which see."
> …
>
> I can't make much sense of the last sentence which looks truncated.
It means, please look at the variable org-log-into-drawer for
more information. I have seen this idiom in Emacs
in a number of places, so I assumed it is OK.
>
> As an aside, while the value for org-log-into-drawer can be changed for
> a subtree by setting a property, this setting is not honored for
> clocking in the same subtree, which will still use the value of
> org-log-into-drawer in global or local scope or the LOGBOOK drawer, if
> present. In org-clock.el:
>
> (if org-clock-into-drawer
> (let ((logbook
> (if (stringp org-clock-into-drawer)
> (concat ":" org-clock-into-drawer ":")
> ":LOGBOOK:")))
>
> But no defun to check a property like that used for logging in org.el:
>
> (defun org-log-into-drawer ()
> "Return the value of `org-log-into-drawer', but let properties overrule.
> If the current entry has or inherits a LOG_INTO_DRAWER property, it will be
> used instead of the default value."
> (let ((p (org-entry-get nil "LOG_INTO_DRAWER" 'inherit)))
> (cond
> ((or (not p) (equal p "nil")) org-log-into-drawer)
> ((equal p "t") "LOGBOOK")
> (t p))))
>
> For symmetry it seems that one should be able to specify a property
> CLOCK_INTO_DRAWER specifically for clocking or fall back onto LOG_INTO
> DRAWER, just like the customization variables allow one to do.
This does make sense, can you make a patch?
- Carsten
next prev parent reply other threads:[~2011-06-21 7:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 19:32 [Bug] Doc string for org-clock-into-drawer truncated? Achim Gratz
2011-06-21 7:49 ` Carsten Dominik [this message]
2011-06-21 9:18 ` Ian Barton
2011-06-26 15:27 ` Achim Gratz
2011-06-22 21:11 ` Achim Gratz
2011-06-26 16:10 ` [PATCH] Introduce CLOCK_INTO_DRAWER property like the existing LOG_INTO_DRAWER (was: [Bug] Doc string for org-clock-into-drawer truncated?) Achim Gratz
2011-06-27 10:14 ` [PATCH] Introduce CLOCK_INTO_DRAWER property like the existing LOG_INTO_DRAWER Bastien
2011-06-27 19:52 ` Achim Gratz
2011-06-28 16:38 ` Bastien
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=875E1ACA-B404-4783-95B3-3EAE52759E0C@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=Stromeko@nexgo.de \
--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).