From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: org google weather Date: Sat, 5 Mar 2011 08:57:39 -0600 Message-ID: References: <87oc5rlwc4.wl%lists@700c.org> <4D70A577.4000509@manor-farm.org> <80k4gfnth7.fsf@somewhere.org> <4D70CCB6.5080101@manor-farm.org> <8736.1299256681@alphaville.dokosmarshall.org> <4427.1299270361@alphaville.usa.hp.com> <8739n1j2ec.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174be8c8db49f3049dbd7b7a Return-path: Received: from [140.186.70.92] (port=55204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvsvP-0007vf-8w for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 09:57:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvsvM-0007N4-LZ for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 09:57:42 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:36269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvsvM-0007Ms-8v for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 09:57:40 -0500 Received: by eyh6 with SMTP id 6so1011427eyh.0 for ; Sat, 05 Mar 2011 06:57:39 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Konrad Hinsen , Bastien Cc: Org Mode Mailing List --0015174be8c8db49f3049dbd7b7a Content-Type: text/plain; charset=ISO-8859-1 Konrad, Being an elisp noob I had forgotten about the provide code in the .el file. That fixed that problem, THANK YOU so much. Now if I can figure out why I have to M-x load-library RET google-weather RET M-x load-library RET org-google-weather RET to get google weather to work with my agenda (though I am debating on leaving it this way and having a function load these two files as I am not always internet connected and it is annoying to wait for the network connection attempt to timeout 4 times for each day it attempts to retrieve the weather or maybe I should look and see if I can patch it to make it skip the other attempts if the first fails? but then I need to figure out how to get them to load automatically). I should just need to use the code in my dot emacs '(require 'google-weather) '(require 'org-google-weather) for it to work but that doesn't seem to do the trick, maybe i need to look in the code in those .el files. Bastien, to your question, I am trying to set some functions in other .el files so that I can break up differnt parts of code for the different parts of my .emacs file intsead of just adding more and more code. Matthew On Sat, Mar 5, 2011 at 7:26 AM, Konrad Hinsen wrote: > On 5 Mar 2011, at 12:44, Matthew Sauer wrote: > > >> I put the diary-sunset and diary-sunrise functions in a file called >> sunrisesunset.el in my elisp directory, it is part of my load path and put >> '(require 'sunrisesunset) >> in my .emacs >> > > Did you put a > > (provide 'sunrisesunset) > > at the end of sunrisesunset.el? That's what tells Emacs that the > requirement is now fulfilled. > > Konrad. > --0015174be8c8db49f3049dbd7b7a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Konrad,
=A0
Being an elisp noob I had forgotten about the provide code in the .el = file.=A0 That fixed that problem, THANK YOU so much.=A0=A0 Now if I can fig= ure out why I have to
M-x load-library RET google-weather RET
M-x load-library RET org-google-weather RET
to get google weather to work with my agenda (though I am debating on = leaving it this way and having a function load these two files as I am not = always internet connected and it is annoying to wait for the network connec= tion attempt to timeout 4 times for each day it attempts to retrieve the we= ather or maybe I should look and see if I can patch it to make it skip the = other attempts if the first fails? but then I need to figure out how to get= them to load automatically).=A0 I should just need to use the code in my d= ot emacs
'(require 'google-weather)
'(require 'org-google-weather)
for it to work but that doesn't seem to do the trick, maybe i need= to look in the code in those .el files.
=A0
Bastien,
to your question, I am trying to set some functions in other .el files= so that I can break up differnt parts of code for the different parts of m= y .emacs file intsead of just adding more and more code.
=A0
Matthew

On Sat, Mar 5, 2011 at 7:26 AM, Konrad Hinsen <konrad.hi= nsen@fastmail.net> wrote:
On 5 Mar 2011, at 12:44, Matthew Sauer wrote:


I put the diary-sunset and d= iary-sunrise functions in a file called sunrisesunset.el in my elisp direct= ory, it is part of my load path and put
'(require 'sunrisesunset)
in my .emacs

Did you put a

=A0 =A0 =A0 =A0(provide 'sunrisesunset)

at= the end of sunrisesunset.el? That's what tells Emacs that the requirem= ent is now fulfilled.

Konrad.

--0015174be8c8db49f3049dbd7b7a--