Alan Shutko <[EMAIL PROTECTED]> writes:
> Why does it need to use the latitude and longitude at compilation
> time? If we fix that, it doesn't matter what the default is.
So, here's the problem.
On load, appt.el calls (appt-activate 1). That activates the
appointment stuff, which loads the diary file. If the user has a
diary file with diary-sunrise-sunset in it, diary-sunrise-sunset is
called, which tries to use the latitude and longitude.
icalendar.el has (require 'appt). So, when icalendar.el is compiled,
appt is loaded and activated. Enter the problem.
Here's what I have as a possible fix. It will fix bootstrap, but it
won't fix the case if someone is interactively compiling a file which
requires appt, and doesn't have lat & long set.
2005-05-05 Alan Shutko <[EMAIL PROTECTED]>
* calendar/appt.el: Only activate appt if in an interactive
session. This stops appt from prompting during Emacs bootstrap.
--- appt.el 31 Mar 2005 08:33:46 -0600 1.57
+++ appt.el 05 May 2005 14:20:30 -0500
@@ -1,6 +1,7 @@
;;; appt.el --- appointment notification functions
-;; Copyright (C) 1989, 1990, 1994, 1998, 2004 Free Software Foundation, Inc.
+;; Copyright (C) 1989, 1990, 1994, 1998, 2004, 2005
+;; Free Software Foundation, Inc.
;; Author: Neil Mager <[EMAIL PROTECTED]>
;; Maintainer: Glenn Morris <[EMAIL PROTECTED]>
@@ -689,8 +690,8 @@
;; This is needed for backwards compatibility. Feh.
-(appt-activate 1)
-
+(if (not noninteractive)
+ (appt-activate 1))
(provide 'appt)
--
Alan Shutko <[EMAIL PROTECTED]> - I am the rocks.
Next to ingratitude, the most painful thing to bear is gratitude.
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel