From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niall Dooley Subject: Bug: ? org-log-done-with-time set as a file local variable does not have the desired effect Date: Sat, 16 Mar 2019 16:25:56 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5CHV-0005ws-D4 for emacs-orgmode@gnu.org; Sat, 16 Mar 2019 12:35:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5C8p-0004hi-Cd for emacs-orgmode@gnu.org; Sat, 16 Mar 2019 12:26:36 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:42941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h5C8p-0004hP-00 for emacs-orgmode@gnu.org; Sat, 16 Mar 2019 12:26:35 -0400 Received: by mail-qk1-x72e.google.com with SMTP id b74so7343565qkg.9 for ; Sat, 16 Mar 2019 09:26:34 -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" To: emacs-orgmode@gnu.org 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