From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: postponing todos Date: Tue, 07 Aug 2007 19:13:41 +0200 Message-ID: <87fy2v8dyy.fsf@bzg.ath.cx> References: <878x8osm96.fsf@freemail.hu> <873ayvkay2.fsf@freemail.hu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IISdd-0007xz-VA for emacs-orgmode@gnu.org; Tue, 07 Aug 2007 13:14:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IISdd-0007xQ-1a for emacs-orgmode@gnu.org; Tue, 07 Aug 2007 13:14:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IISdc-0007xN-Q3 for emacs-orgmode@gnu.org; Tue, 07 Aug 2007 13:14:32 -0400 Received: from hu-out-0506.google.com ([72.14.214.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IISdW-0004qZ-T1 for emacs-orgmode@gnu.org; Tue, 07 Aug 2007 13:14:31 -0400 Received: by hu-out-0506.google.com with SMTP id 23so1413734huc for ; Tue, 07 Aug 2007 10:13:44 -0700 (PDT) In-Reply-To: <873ayvkay2.fsf@freemail.hu> (ignotus@freemail.hu's message of "Tue\, 07 Aug 2007 10\:25\:57 +0200") 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 --=-=-= Hi Richard, ignotus@freemail.hu writes: > At the moment, all uncompleted todo entries appear in my agenda views, > regardless of scheduling. Is there something I could use as query > string to filter the list based on scheduling, like "SCHEDULED=today"? One way to do this is to define your own agenda view through `org-agenda-custom-commands': For example: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=bzg-agenda-command.el Content-Transfer-Encoding: 8bit (add-to-list 'org-agenda-custom-commands '("b" bzg-org-agenda-timestamp "." nil)) (defun bzg-org-agenda-timestamp (match) "List timestamped entries found in `org-agenda-files'. Restrict the results to entries matching MATCH." (interactive) (let* ((today (org-date-to-gregorian (time-to-days (current-time)))) (files org-agenda-files) entries file pos) (while (setq file (pop files)) (let ((entry (mapcar '(lambda(e) (when (string-match match e) e)) (org-agenda-get-day-entries file today :timestamp)))) (setq entry (delq nil entry)) (setq entries (append entries entry)))) (setq entries (delq nil entries)) (org-prepare-agenda "TIMESTAMPS") (setq pos (point)) (insert (format "Timestamped entries matching: \"%s\"\n" match)) (add-text-properties pos (1- (point)) (list 'face 'org-agenda-structure)) (insert (org-finalize-agenda-entries entries)) (org-finalize-agenda))) --=-=-= BTW: you can replace :timestamp by :deadline or whatever `org-diary' is supposed to understand -- but so far i cannot get :scheduled display today's scheduled entries. I think it's a bug about time computation in `org-agenda-get-day-entries'. Hope this helps, -- Bastien --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--