From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vilata i Balaguer Subject: Bug: Timestamp not removed from recurring appointment [7.7] Date: Sat, 05 Nov 2011 21:32:52 +0100 Message-ID: <87hb2ib98r.fsf@edgar.terramar.selidor.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMmvA-0003rk-4X for emacs-orgmode@gnu.org; Sat, 05 Nov 2011 16:32:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMmv8-0003BW-HN for emacs-orgmode@gnu.org; Sat, 05 Nov 2011 16:32:56 -0400 Received: from lev.selidor.net ([66.246.138.156]:55953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMmv8-0003BR-FW for emacs-orgmode@gnu.org; Sat, 05 Nov 2011 16:32:54 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I've noticed that timestamps referring to a date before today are not removed from the text showed in appointments. For instance, if today is 2011-11-05, an appointment like this: * Reminders ** Call dad <2011-11-05 ds 12:42 +7d> Shows up today as "12:42 Call dad". However, if the base date belongs to one week ago like this: * Reminders ** Call dad <2011-10-29 ds 12:42 +7d> The message shows up today as "12:42 Call dad <2011-10-29 ds 12:42 +7d>" Thanks a lot! Emacs : GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.6) of 2011-10-26 on trouble, modified by Debian Package: Org-mode version 7.7 current state: ============== (setq appt-disp-window-function (quote ivb/appt-disp-window) org-agenda-files '("~/bzr/ivan/org/tasks.org" "~/bzr/ivan/org/reminders.org") org-agenda-skip-scheduled-if-done t org-finalize-agenda-hook '(bh/org-agenda-to-appt) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-directory "~/bzr/ivan/org/" org-agenda-todo-ignore-with-date t org-agenda-skip-deadline-if-done t ) (defun ivb/appt-disp-window (min-to-app new-time appt-msg) (if (condition-case nil (server-running-p) (void-function nil)) (call-process "notify" nil 0 nil "Recordatori" appt-msg)) (appt-disp-window min-to-app new-time appt-msg)) ;; Vegeu http://doc.norang.ca/org-mode.html#Reminders. ;; Erase all reminders and rebuild reminders for today from the agenda. (defun bh/org-agenda-to-appt () (interactive) (setq appt-time-msg-list nil) (org-agenda-to-appt)) ;; Rebuild the reminders everytime the agenda is displayed. (add-hook 'org-finalize-agenda-hook 'bh/org-agenda-to-appt 'append) ;; Habilitar els avisos i carregar els recordatoris. (appt-activate +1) (bh/org-agenda-to-appt) -- Ivan Vilata i Balaguer -- http://elvil.net/