From: Ivan Vilata i Balaguer <ivan@selidor.net>
To: emacs-orgmode@gnu.org
Subject: Bug: Timestamp not removed from recurring appointment [7.7]
Date: Sat, 05 Nov 2011 21:32:52 +0100 [thread overview]
Message-ID: <87hb2ib98r.fsf@edgar.terramar.selidor.net> (raw)
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/
reply other threads:[~2011-11-05 20:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hb2ib98r.fsf@edgar.terramar.selidor.net \
--to=ivan@selidor.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).