[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-todo-yesterday and 23:59

From: Adam Porter
Subject: Re: [O] org-todo-yesterday and 23:59
Date: Fri, 22 Apr 2016 01:48:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Adam Porter <address@hidden> writes:

> Samuel Wales <address@hidden> writes:
>> can org-todo-yesterday be made to use [2016-04-20 Wed] instead of
>> [2016-04-20 Wed 23:59]?
> I guess you could add :after advice to the function and remove the time
> from the new timestamp.

Alternatively, maybe you could temporarily either override or advise
`org-time-stamp-format' to always insert a date-only timestamp.  There's
some code here that might help:


The crux seems to be the `long' variable here:

#+BEGIN_SRC elisp
(defun org-time-stamp-format (&optional long inactive)
  "Get the right format for a time string."
  (let ((f (if long (cdr org-time-stamp-formats)
             (car org-time-stamp-formats))))
    (if inactive
        (concat "[" (substring f 1 -1) "]")

I don't see an easy way to change the argument passed to it by the chain
of functions that ends up calling it.  I'm no expert though, so maybe
I'm missing something obvious.  :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]