emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Timestamp not removed from recurring appointment [7.7]
@ 2011-11-05 20:32 Ivan Vilata i Balaguer
  0 siblings, 0 replies; only message in thread
From: Ivan Vilata i Balaguer @ 2011-11-05 20:32 UTC (permalink / raw)
  To: emacs-orgmode


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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-05 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-05 20:32 Bug: Timestamp not removed from recurring appointment [7.7] Ivan Vilata i Balaguer

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).