From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called Date: Wed, 5 Mar 2008 06:33:23 +0100 Message-ID: References: <47CDFD8D.1060600@gmail.com> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWmFv-0000cz-6P for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 00:33:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWmFt-0000cU-G0 for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 00:33:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWmFt-0000cR-9k for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 00:33:29 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWmFs-0001XU-R0 for emacs-orgmode@gnu.org; Wed, 05 Mar 2008 00:33:29 -0500 Received: by fg-out-1718.google.com with SMTP id d23so1185786fga.30 for ; Tue, 04 Mar 2008 21:33:27 -0800 (PST) In-Reply-To: <47CDFD8D.1060600@gmail.com> 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: Wanrong Lin Cc: org-mode list 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