Hi Puneeth,
I have now understood, and changed the behavior so that
your function should work correctly.
Note that the rounding only works now if you use S-up and S-down
on the minutes. If you give your function of 13 minutes, it will
change all time stamps by 13 minutes, not a rounded number.
HTH
- Carsten
On Jun 22, 2010, at 3:48 PM, Puneeth wrote:
Hi Carsten,
On Tue, Jun 22, 2010 at 7:03 PM, Carsten Dominik
<carsten.domi...@gmail.com> 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
- Carsten
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode