[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [PATCH] org-timestamp-change changes minutes in multiples
From: |
Puneeth |
Subject: |
Re: [Orgmode] [PATCH] org-timestamp-change changes minutes in multiples of rounding time |
Date: |
Tue, 22 Jun 2010 19:18:08 +0530 |
Hi Carsten,
On Tue, Jun 22, 2010 at 7:03 PM, Carsten Dominik
<address@hidden> wrote:
>
> On Jun 22, 2010, at 1:10 PM, Puneeth wrote:
[..]
> no, I do not think so. The variable is called "-rounding", not "-step".
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