From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Modify clock in/out time to previous/following full quarter of an hour. Date: Tue, 18 Sep 2012 09:55:11 +0200 Message-ID: <87haqv7hku.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDv0V-0005D6-IA for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 06:26:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDv0M-0002x9-5D for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 06:26:19 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:52384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDv0L-0002vW-Ut for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 06:26:10 -0400 Received: by mail-we0-f169.google.com with SMTP id s10so4889886wey.0 for ; Tue, 18 Sep 2012 03:26:09 -0700 (PDT) In-Reply-To: (Rainer Stengele's message of "Thu, 13 Sep 2012 12:06:38 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer Stengele Cc: emacs-orgmode@gnu.org Hi Rainer, Rainer Stengele writes: > How could I achieve this? Which hook should I use? How? (I never > programmed something like this). (defun my-org-adjust-clock-timestamps () (interactive) (let ((org-time-stamp-rounding-minutes '(0 15))) (save-excursion (beginning-of-line) (re-search-forward org-ts-regexp3 nil t) (backward-char 2) (org-shiftdown) (re-search-forward org-ts-regexp3 nil t) (backward-char 2) (org-shiftup)))) HTH, -- Bastien