emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: with %%(org-diary) in .diary file, org-mode-hook is not called
@ 2008-03-05  1:55 Wanrong Lin
  2008-03-05  5:33 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Wanrong Lin @ 2008-03-05  1:55 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called
  2008-03-05  1:55 Bug: with %%(org-diary) in .diary file, org-mode-hook is not called Wanrong Lin
@ 2008-03-05  5:33 ` Carsten Dominik
  2008-03-05 15:13   ` Wanrong Lin
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2008-03-05  5:33 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called
  2008-03-05  5:33 ` Carsten Dominik
@ 2008-03-05 15:13   ` Wanrong Lin
  0 siblings, 0 replies; 3+ messages in thread
From: Wanrong Lin @ 2008-03-05 15:13 UTC (permalink / raw)
  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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-05 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05  1:55 Bug: with %%(org-diary) in .diary file, org-mode-hook is not called Wanrong Lin
2008-03-05  5:33 ` Carsten Dominik
2008-03-05 15:13   ` Wanrong Lin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).