From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: org-todo-yesterday and 23:59 Date: Fri, 22 Apr 2016 01:48:31 -0500 Message-ID: <87bn526sw0.fsf@alphapapa.net> References: <87fuue6wih.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atUtU-0004VU-V2 for emacs-orgmode@gnu.org; Fri, 22 Apr 2016 02:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atUtR-0006LA-OC for emacs-orgmode@gnu.org; Fri, 22 Apr 2016 02:48:48 -0400 Received: from plane.gmane.org ([80.91.229.3]:51748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atUtR-0006L6-Hl for emacs-orgmode@gnu.org; Fri, 22 Apr 2016 02:48:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1atUtM-0007zW-7p for emacs-orgmode@gnu.org; Fri, 22 Apr 2016 08:48:40 +0200 Received: from 172-0-42-27.lightspeed.ltrkar.sbcglobal.net ([172.0.42.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2016 08:48:40 +0200 Received: from adam by 172-0-42-27.lightspeed.ltrkar.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Apr 2016 08:48:40 +0200 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 Adam Porter writes: > Samuel Wales 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: http://stackoverflow.com/a/15916937/712624 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) "]") f))) #+END_SRC 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. :)