From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Shutko Newsgroups: gmane.emacs.devel Subject: Re: bootstrap from scratch Date: Thu, 05 May 2005 14:24:08 -0500 Message-ID: <87vf5xzdbb.fsf@vera.springies.com> References: <200505051718.j45HIrFG002303@emr.cs.iit.edu> <87fyx11pm0.fsf@vera.springies.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115321585 22453 80.91.229.2 (5 May 2005 19:33:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 May 2005 19:33:05 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 21:33:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTm3s-0002Wi-4i for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 21:31:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTmBR-0007oF-1H for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 15:38:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DTm6y-00058J-P8 for emacs-devel@gnu.org; Thu, 05 May 2005 15:34:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DTm6x-00057W-Hh for emacs-devel@gnu.org; Thu, 05 May 2005 15:34:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTm6l-0004cu-QZ for emacs-devel@gnu.org; Thu, 05 May 2005 15:34:03 -0400 Original-Received: from [199.249.176.251] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DTm2j-0003De-Hr for emacs-devel@gnu.org; Thu, 05 May 2005 15:29:53 -0400 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.1/8.13.1) with ESMTP id j45JOHe6028093; Thu, 5 May 2005 14:24:17 -0500 Original-Received: (from ats@localhost) by localhost.localdomain (8.13.1/8.13.1/Submit) id j45JOFvG028084; Thu, 5 May 2005 14:24:15 -0500 Original-To: emacs-devel@gnu.org, reingold@emr.cs.iit.edu, Glenn Morris In-Reply-To: <87fyx11pm0.fsf@vera.springies.com> (Alan Shutko's message of "Thu, 05 May 2005 13:42:31 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36716 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36716 Alan Shutko 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 * 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 ;; Maintainer: Glenn Morris @@ -689,8 +690,8 @@ ;; This is needed for backwards compatibility. Feh. -(appt-activate 1) - +(if (not noninteractive) + (appt-activate 1)) (provide 'appt) -- Alan Shutko - I am the rocks. Next to ingratitude, the most painful thing to bear is gratitude.