From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: org-agenda-show-current-time-in-grid and automatic refresh Date: Thu, 13 Jan 2011 07:36:09 +0100 Message-ID: References: <87fwsyyfcr.fsf@gmail.com> <20110111231909.2338897e@bhishma.homelinux.net> <23120.1294820624@gamaville.dokosmarshall.org> <20110112133307.4705f99a@bhishma.homelinux.net> <87mxn54d0q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=43441 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdGn6-0001xy-CW for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 01:36:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdGn5-0000Yo-Bq for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 01:36:12 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:40075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdGn5-0000Yd-8m for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 01:36:11 -0500 Received: by iyj17 with SMTP id 17so1394429iyj.0 for ; Wed, 12 Jan 2011 22:36:10 -0800 (PST) In-Reply-To: <87mxn54d0q.fsf@gmail.com> 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 Cc: Detlef Steuer , Tommy Stanton , Kiwon Um , Nick Dokos On Thu, Jan 13, 2011 at 05:56, Kiwon Um wrote: > ;; refresh agenda view regurally > (defun kiwon/org-agenda-redo-in-other-window () > "Call org-agenda-redo function even in the non-agenda buffer." > (interactive) > (let ((agenda-window (get-buffer-window org-agenda-buffer-name t))) > (when agenda-window > (with-selected-window agenda-window (org-agenda-redo))))) > (run-at-time nil 300 'kiwon/org-agenda-redo-in-other-window) I must admit that I would like and use a less simple solution where only the line with the current time would be updated and if necessary also moved within the time grid once every minute. I would like it even additionally to the clock on the OS desktop because the agenda view current time does not only show the current time itself but also the current time position within the time grid. For me it would not be desirable to update also all other agenda view contents like above without request from the user with `g'. On one side because it can collide badly with the user while manipulating (e. g. shift-right several times on an entry) or only moving in the agenda view and on one side because an overall update can take an unpredictably large amount of CPU time for a larger set of larger agenda files. Michael