本文介绍了无法输入日记条目org-agenda-diary-entry:错误的参数类型:commandp,insert-diary-entry的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用emacs 25.3.2和org-mode 8.2.10。由于某种原因,每当我尝试在org-Agenda中添加新的日记条目时,我都会收到此错误消息

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 :错误的类型参数:commandp,insert-diary-entry无效的人脸参考:nil

我尝试了所有类型:每周,每月,无工作了。如果我尝试从emacs日历中添加条目,则可以正常工作(我最终在日记文件中)。

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).

.emacs文件中的相关条目为

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

org-agenda-diary-entry,但找不到任何类型相同的人,而且我无法理解问题所在。预先感谢您的帮助。

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.

推荐答案

此错误是由日记功能的重命名引起的。它是通过以下提交在组织模式下修复的:

This bug was caused by a renaming of diary functions. It was fixed in org-mode by the following commit:

commit 685d3ba4af8cbb45447bb0b6c215a7135e7ed77e
Author: Florian Beck <[email protected]>
Date:   Sat Nov 15 19:14:27 2014 +0100

    Replace obsolete aliases of calendar functions

    * lisp/org-agenda.el (org-agenda-diary-entry): Replace obsolete functions.

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 7632e1b17..b4b0a24de 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -9473,13 +9473,13 @@ entries in that Org-mode file."
                   (message "Diary entry: [d]ay [w]eekly [m]onthly [y]early [a]nniversary [b]lock [c]yclic")
                   (read-char-exclusive)))
           (cmd (cdr (assoc char
-               '((?d . insert-diary-entry)
...
+               '((?d . diary-insert-entry)
...

8.2.10日期从2014年10月开始,就在此修复之前进去了。我认为是时候升级了。

8.2.10 dates from October 2014, just before this fix went in. I think it's time to upgrade.

这篇关于无法输入日记条目org-agenda-diary-entry:错误的参数类型:commandp,insert-diary-entry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 12:26