From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called Date: Tue, 04 Mar 2008 20:55:25 -0500 Message-ID: <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 1JWiqz-0001nw-P7 for emacs-orgmode@gnu.org; Tue, 04 Mar 2008 20:55:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWiqy-0001n2-At for emacs-orgmode@gnu.org; Tue, 04 Mar 2008 20:55:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWiqy-0001mv-1R for emacs-orgmode@gnu.org; Tue, 04 Mar 2008 20:55:32 -0500 Received: from an-out-0708.google.com ([209.85.132.241]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWiqx-0004cY-LZ for emacs-orgmode@gnu.org; Tue, 04 Mar 2008 20:55:31 -0500 Received: by an-out-0708.google.com with SMTP id c25so310213ana.84 for ; Tue, 04 Mar 2008 17:55:29 -0800 (PST) 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, 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