emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: ? org-log-done-with-time set as a file local variable does not have the desired effect
@ 2019-03-16 16:25 Niall Dooley
  2019-03-17 10:40 ` Niall Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Niall Dooley @ 2019-03-16 16:25 UTC (permalink / raw)
  To: emacs-orgmode

Firstly, this may or may not be a bug so apologies if I've incorrectly
labelled the subject line.

I use org-habits to track my habits defined in a habits.org file. I log each
time I perform the habit with a :LOGGING: DONE(!) property. This adds an entry
to a :LOGBOOK: drawer each time I mark the habit done. I understand, ! means
the log entry includes the date and time I mark the entry DONE. In fact, if I
remove the ! the scheduled time of the habit is move forward but no entry
appears in the :LOGBOOK: drawer. I would like such entries to only include the
date and not the time as I don't care when during the day it was done only
that it was done that day. I'm aware of org-log-done-with-time with its
default value of t. Setting this to nil will ensure only the date is included.
However, I want this behaviour only for habit tasks. For other tasks I want to
log the date+time as I want to produce clock reports to know how much time I
have spent on a task.

I've set org-log-done-with-time as a file local variable (in my habits.org) to
nil. Oddly, the Local Variables section was initially visible at the end of
this file but is no longer visible (when visiting this file in subssequent
sessions) though the variable is still set to nil for buffers visiting this
file.

(1) Why do I no longer see this Local Variables section in this file?

Despite setting this local variable it does not have the desired effect and
:LOGBOOK: drawer entries for my habits still display the date+time instead of
only the date.

(2) Why does this not achieve what I want? Presumably, I'm setting the wrong
variable or perhaps it is not possible to do via an existing setting.

The org manual page [0] suggests this is possible, though the TODO state
changes in the example are not within a :LOGBOOK: drawer which is perhaps
misleading.

[0] https://orgmode.org/manual/Tracking-your-habits.html#Tracking-your-habits

TIA,

Niall

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

* Re: Bug: ? org-log-done-with-time set as a file local variable does not have the desired effect
  2019-03-16 16:25 Bug: ? org-log-done-with-time set as a file local variable does not have the desired effect Niall Dooley
@ 2019-03-17 10:40 ` Niall Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Niall Dooley @ 2019-03-17 10:40 UTC (permalink / raw)
  To: emacs-orgmode

On Sat, 16 Mar 2019 at 16:25, Niall Dooley <dooleyn@gmail.com> wrote:

> I've set org-log-done-with-time as a file local variable (in my habits.org) to
> nil. Oddly, the Local Variables section was initially visible at the end of
> this file but is no longer visible (when visiting this file in subsequent
> sessions) though the variable is still set to nil for buffers visiting this
> file.
>
> (1) Why do I no longer see this Local Variables section in this file?

I was incorrect with this statement and query. This is an org file with
subtrees and the Local Variables section is actually hidden under that the
last subtree. So please ignore this specific question. I would still like a
solution to my second query.

-- Niall

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

end of thread, other threads:[~2019-03-17 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-16 16:25 Bug: ? org-log-done-with-time set as a file local variable does not have the desired effect Niall Dooley
2019-03-17 10:40 ` Niall Dooley

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).