emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth <punchagan@gmail.com>
To: Carsten Dominik <carsten.dominik@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 19:18:08 +0530	[thread overview]
Message-ID: <AANLkTinK7F8uAYqgHmkc-PMEMGPKdZRcXzxGBlNPJ0YP@mail.gmail.com> (raw)
In-Reply-To: <760E4982-388D-4B19-BD27-FABF6C2717E0@gmail.com>

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

  reply	other threads:[~2010-06-22 13:48 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 [this message]
2010-06-22 14:17     ` Carsten Dominik
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=AANLkTinK7F8uAYqgHmkc-PMEMGPKdZRcXzxGBlNPJ0YP@mail.gmail.com \
    --to=punchagan@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).