我正在尝试再次使用 org-mode 议程视图。当我运行 Mx org-todo-list 时,我得到一个空的 *Org Agenda* 并且迷你缓冲区显示
Wrong number of arguments: (0 . 0), 2
我正在运行 org-version 9.1.9
系统信息:计算机:- 操作系统:gnu/linux
- Emacs:26.2
- Spacemacs:0.200.13
- Spacemacs 分支:master (rev. 8c0b8c344)
- 图形显示:t
- 分布:spacemacs
- 编辑风格:vim
- 完成:常春藤
- 层数:
(javascript rust html csv c-c++ git shell spell-checking ivy emacs-lisp markdown org)
这些行在我的 .spacemacs 文件中:
(setq org-todo-keywords '((sequence "TODO" "NEXT" "PROG" "HOLD" "WAIT" "|" "DONE" "CNCL")))
'(org-agenda-files
(quote
("~/Documents/developer/editors/emacs/demo/tasks.org" "~/Documents/tasks/tasks.org")))
这两个 tasks.org 文件都包含状态不是 DONE 的节点。
与调试模式交互的相同错误:
(custom-set-variables
'(org-agenda-files (quote ("~/Documents/developer/editors/emacs/demo/tasks.org")))
)
回溯是:
Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 0) 2)
org-get-tags(nil nil)
org-agenda-get-todos()
org-agenda-get-day-entries("~/Documents/developer/editors/emacs/demo/tasks.org" (10 4 2019) :todo)
org-todo-list(nil)
funcall-interactively(org-todo-list nil)
call-interactively(org-todo-list record nil)
command-execute(org-todo-list record)
#f(compiled-function (cmd) #<bytecode 0x2601e49>)("org-todo-list")
ivy-call()
ivy-read("M-x " ("eval-last-sexp" "toggle-debug-on-error" "org-version" "org-agenda-file-to-front" "org-publish-current-file" "org-publish" "eval-buffer" "recentf-cleanup" "elisp-index-search" "org-display-inline-images" "diff" "org-lint" "clean-buffer-list" "org-publish-project" "spacemacs/search-ack" "cd" "5x5" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "s" "rsh" "sdb" "xdb" "calc" "dirs" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "smex" "talk" "term" ...) :predicate nil :require-match t :history counsel-M-x-history :action #f(compiled-function (cmd) #<bytecode 0x2601e49>) :sort nil :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
在运行 org-version 9.2.1(我正在运行 org-version 9.1.9)的Org 议程“参数数量错误”上报告了类似的错误。
任何帮助表示赞赏。
更新 1:
Cu Mx org-reload 加载了 org-version 9.2.4,然后 org-todo-list 按预期工作。
当我重新启动 emacs 时,加载了 org-version 9.1.9,并且议程视图再次出现相同的错误。
如https://emacs.stackexchange.com/questions/53107/how-to-update-org-mode-via-package-manager所述,我无法安装最新的 org-version 9.2.6