From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: Re: [PATCH] org-timestamp-change changes minutes in multiples of rounding time Date: Tue, 22 Jun 2010 19:18:08 +0530 Message-ID: References: <760E4982-388D-4B19-BD27-FABF6C2717E0@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55932 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OR3qA-0007yY-9a for emacs-orgmode@gnu.org; Tue, 22 Jun 2010 09:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OR3q7-0003XR-Si for emacs-orgmode@gnu.org; Tue, 22 Jun 2010 09:48:37 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:40968) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OR3q7-0003X6-Oa for emacs-orgmode@gnu.org; Tue, 22 Jun 2010 09:48:35 -0400 Received: by vws4 with SMTP id 4so2413262vws.0 for ; Tue, 22 Jun 2010 06:48:31 -0700 (PDT) In-Reply-To: <760E4982-388D-4B19-BD27-FABF6C2717E0@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode Hi Carsten, On Tue, Jun 22, 2010 at 7:03 PM, Carsten Dominik wrote: > > On Jun 22, 2010, at 1:10 PM, Puneeth wrote: [..] > no, I do not think so. =C2=A0The variable is called "-rounding", not "-st= ep". Sorry for the unclear message. Let me explain. I tried to use the function shown below (imitating a similar function by Juan Pechier [1]). But this function only changes the time by either +5 or -5 minutes for whatever value of "n". Should it not, increase the time by a multiple of 5 mins? 8<---------------------------------------- (defun upminutes ( n ) "update all timestamps n minutes" (interactive "nAdd minutes: ") (save-excursion (goto-char (point-min)) (while (re-search-forward "[[<]" nil t) (when (org-at-timestamp-p t) (org-timestamp-change n 'minute) )))) 8<---------------------------------------- Thanks, Puneeth [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00229.html