From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Re: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called Date: Wed, 05 Mar 2008 10:13:37 -0500 Message-ID: <47CEB8A1.9070004@gmail.com> References: <47CDFD8D.1060600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWvJX-0000qn-0C for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 10:13:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWvJV-0000qV-Fx for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 10:13:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWvJV-0000qM-BP for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 10:13:49 -0500 Received: from fg-out-1718.google.com ([72.14.220.155]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWvJV-0006ve-1j for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 10:13:49 -0500 Received: by fg-out-1718.google.com with SMTP id d23so1433755fga.30 for ; Wed, 05 Mar 2008 07:13:48 -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: org-mode list Hi, Carsten, You are right. I moved my hook org-mode-hook setup before the following (require 'org-install) (require 'org-mouse) and now my hook is called. I had the wrong understanding that I have to set up my org-mode-hook after the "org-install" package is loaded. Thanks a lot. Wanrong Carsten Dominik wrote: > Hi Wanrong, > > this is strange and should not happen. > > Do you call the diary in your ,emacs before setting up org-mode-hook? > > - Carsten > > On Mar 5, 2008, at 2:55 AM, Wanrong Lin wrote: > >> Hi, >> >> I was trying Bastien's suggestion for marking dates in calendar, so I >> put this into my .diary file: >> >> &%%(org-diary) >> >> >> What I found is after I launch emacs, all my org-agenda files are >> already open, but my org-mode-hook function was not called, so my key >> bindings and other stuff was not set up properly. I need to close the >> org file and open it again to have my org-mode-hook function called. >> >> I remember I reported a similar bug before, and Carsten fixed it by >> closing those opened files after scanning all org-agenda files for >> appointments. Maybe we can fix it the same way? Thanks. >> >> Wanrong >> >> >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >