From: Wanrong Lin <wanrong.lin@gmail.com>
To: org-mode list <emacs-orgmode@gnu.org>
Subject: Re: Bug: with %%(org-diary) in .diary file, org-mode-hook is not called
Date: Wed, 05 Mar 2008 10:13:37 -0500 [thread overview]
Message-ID: <47CEB8A1.9070004@gmail.com> (raw)
In-Reply-To: <B7C371C5-2EEB-4304-8E7A-5C2B68797E73@science.uva.nl>
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
>
prev parent reply other threads:[~2008-03-05 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47CEB8A1.9070004@gmail.com \
--to=wanrong.lin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).