1

Currently I try to use diary, but unfortunately there seems to be an error or bug in emacs.

Every time I try to create a note in diary through the calendar and then push key i (insert as described in the documentation), I get the following error:

command-execute: Wrong type argument: commandp, org-agenda-diary-entry

I am on Emacs 27.1/ Fedora 33.

Has anyone had this issue?

I read (emacs help-list) about a renaming of functions in org-mode not synced with emacs, but I don't understand this, because I'm not a developer.

6
  • With the cursor in the calendar on some date, what does C-h c i report? BTW, that invoke the help system and emacs and asks about the binding of the i key. It will probably say org-agenda-diary-entry and if so, see what C-h f org-agenda-diary-entry RET gives you and edit your question to add this information.
    – NickD
    Commented Nov 11, 2020 at 20:01
  • C-h c i reports i runs the command org-agenda-diary-entry.C-h f org-agenda-diary reports no matches. I run the command also on emacs 28, but without no luck.
    – space_held
    Commented Nov 13, 2020 at 9:35
  • 1
    "C-h f org-agenda-diary reports no matches": did you forget to type the -entry part? Can you try again with C-h f org-agenda-diary-entry RET?
    – NickD
    Commented Nov 13, 2020 at 14:15
  • Unfortunately no. C-h f org-agenda-diary-entry RET reports no matches.
    – space_held
    Commented Nov 14, 2020 at 15:19
  • 1
    Then you have not loaded Org mode: try evaluating (require 'org-agenda) and then see if it works. You can then add this form to your init file, so when you restart emacs, the function will be available.
    – NickD
    Commented Nov 14, 2020 at 15:37

1 Answer 1

1

Comment by NickD: "Then you have not loaded Org mode: try evaluating (require 'org-agenda) and then see if it works. You can then add this form to your init file, so when you restart emacs, the function will be available."

Yes that was the fault. I insert an autoload command before loading the calendar. Now it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.