emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#6999: closed (saving included diary files does n


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6999: closed (saving included diary files does not regenerate the appointment list)
Date: Wed, 15 Sep 2010 02:48:02 +0000

Your message dated Tue, 14 Sep 2010 22:49:51 -0400
with message-id <address@hidden>
and subject line Re: bug#6999: 23.2; [PATCH] appt ignores included diary files
has caused the GNU bug report #6999,
regarding saving included diary files does not regenerate the appointment list
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6999: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6999
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.2; [PATCH] appt ignores included diary files Date: Wed, 08 Sep 2010 13:31:42 +0100
When the main diary file includes other diary files. File saving in the
included does no appt-check, which means if one adds appointments
directly into the included file, they will not be added by
appt-update-list.

One simple solution is to make appt-update-list do appt-check if major
mode is diary-mode. Then users can open included files in diary mode and
add appointments.

diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index 3573c95..818fee4 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -660,7 +660,8 @@ hour and minute parts."
 (defun appt-update-list ()
   "If the current buffer is visiting the diary, update appointments.
 This function is intended for use with `write-file-functions'."
-  (and (string-equal buffer-file-name (expand-file-name diary-file))
+  (and (or (string-equal buffer-file-name (expand-file-name diary-file))
+           (eq major-mode 'diary-mode))
        appt-timer
        (let ((appt-display-diary nil))
          (appt-check t)))



--- End Message ---
--- Begin Message --- Subject: Re: bug#6999: 23.2; [PATCH] appt ignores included diary files Date: Tue, 14 Sep 2010 22:49:51 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Fixed in emacs-23.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]