From: Carsten Dominik <carsten.dominik@gmail.com>
To: Puneeth <punchagan@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org-timestamp-change changes minutes in multiples of rounding time
Date: Tue, 22 Jun 2010 16:17:37 +0200 [thread overview]
Message-ID: <F39F6673-D983-42CA-97B6-3E22DE6022F2@gmail.com> (raw)
In-Reply-To: <AANLkTinK7F8uAYqgHmkc-PMEMGPKdZRcXzxGBlNPJ0YP@mail.gmail.com>
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.dominik@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
next prev parent reply other threads:[~2010-06-22 14:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 11:10 [PATCH] org-timestamp-change changes minutes in multiples of rounding time Puneeth
2010-06-22 12:22 ` Puneeth
2010-06-22 13:33 ` Carsten Dominik
2010-06-22 13:48 ` Puneeth
2010-06-22 14:17 ` Carsten Dominik [this message]
2010-06-22 14:46 ` Puneeth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F39F6673-D983-42CA-97B6-3E22DE6022F2@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=punchagan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).