From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kiwon Um Subject: Searching the closest time-stamp and pose to its heading Date: Sun, 7 Nov 2010 00:30:31 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=49934 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEkiw-0007yx-05 for emacs-orgmode@gnu.org; Sat, 06 Nov 2010 11:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEkiu-00026m-PF for emacs-orgmode@gnu.org; Sat, 06 Nov 2010 11:30:33 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:63819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEkiu-00026e-L8 for emacs-orgmode@gnu.org; Sat, 06 Nov 2010 11:30:32 -0400 Received: by iwn9 with SMTP id 9so4262789iwn.0 for ; Sat, 06 Nov 2010 08:30:31 -0700 (PDT) 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: emacs-orgmode@gnu.org Dear orgmode team and users, I'm now writing a time journal function using org-mode. And I have a question for this. When there are many timestamps in buffer, how can I put my cursor on the heading having the time-stamp closest to the current time or a given time. For instance, there are org contents as follows: ... *** Item1 CLOCK: [2010-11-06 Sat 16:45]--[2010-11-06 Sat 17:00] => 15 *** Item2 CLOCK: [2010-11-06 Sat 17:00]--[2010-11-06 Sat 17:15] => 15 *** Item3 CLOCK: [2010-11-06 Sat 17:15]--[2010-11-06 Sat 17:30] => 15 ... When the current time is [2010-11-06 Sat 17:03], I want to write elisp codes moving the cursor to the Item2 heading. I would really appreciate it if you could give any codes or information for this. Thanks. Sincerely, Kiwon Um