I am using emacs 25.3.2 and org-mode 8.2.10. For some reason whenever I try to add a new diary entry in the org-Agenda I get this error message
org-agenda-diary-entry: Wrong type argument: commandp, insert-diary-entryInvalid face reference: nil
I have tried all types: day weekly, monthly and none worked. If I try to add the entry from emacs calendar it works fine (I end up in the diary file).
Relevant entries from my .emacs file are
;; Calendar/diary controls
;; This code has to be at the beggining to ensure an european date-style format
(add-hook 'calendar-load-hook
(lambda ()
(calendar-set-date-style 'european)))
(set-default 'truncate-lines t)
(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files)
and
(setq org-agenda-include-diary t) ; agenda stuff
(setq org-agenda-files (list "~/org/NOTES.org")) ; agenda stuff
I have searched online, and the best answer I found was how to describe the functions commandp and org-agenda-diary-entry, but I couldn't find anyone with the same type of issue and I cannot understand what the problem is. Thank you in advance for any help.