运行 org-contacts 时出错:org-contacts--candidate:错误的类型参数:整数或标记-p

问题描述 投票:0回答:1

我尝试在 Emacs 和 org-mode 中使用 org-contacts,但使用基本搜索命令 org-contacts 时出现错误。 从 melpa 安装 org-contacts 并使用此 Emacs 配置后:

(use-package org-contacts  
   :ensure t  
   :custom  
   (org-contacts-files '("~/org/contacts.org")))  

以及contacts.org 文件中的第一个测试条目:

* Joe Blog  
  :PROPERTIES:  
  :TEL: +1 650 123 4567  
  :EMAIL:    [email protected]  
  :URL:  
  :NOTES: Nice Guy  
  :END:  

调用

M-x org-contacts
,给出此错误(调试器回溯)

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p (headline (:raw-value "Joe Blog" :begin 46 :end 212 :pre-blank 0 :contents-begin 57 :contents-end 212 :robust-begin nil :robust-end nil :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 46 :TEL "+1 650 123 4567" :EMAIL "[email protected]" :URL "" :NOTES "Nice Guy" :ID "e74e91ec-9d87-4624-8ef0-71d48dccf341" :title "Joe Blog" :mode first-section ...)))
org-entry-properties((headline (:raw-value "Joe Blog" :begin 46 :end 212 :pre-blank 0 :contents-begin 57 :contents-end 212 :robust-begin nil :robust-end nil :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 46 :TEL "+1 650 123 4567" :EMAIL "[email protected]" :URL "" :NOTES "Nice Guy" :ID "e74e91ec-9d87-4624-8ef0-71d48dccf341" :title "Joe Blog" :mode first-section ...)) standard)
org-contacts--candidate((headline (:raw-value "Joe Blog" :begin 46 :end 212 :pre-blank 0 :contents-begin 57 :contents-end 212 :robust-begin nil :robust-end nil :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 46 :TEL "+1 650 123 4567" :EMAIL "[email protected]" :URL "" :NOTES "Nice Guy" :ID "e74e91ec-9d87-4624-8ef0-71d48dccf341" :title "Joe Blog" :mode first-section ...)))
#f(compiled-function (headline) #<bytecode -0x16cf8aeb8c5a3451>)((headline (:raw-value "Joe Blog" :begin 46 :end 212 :pre-blank 0 :contents-begin 57 :contents-end 212 :robust-begin nil :robust-end nil :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 46 :TEL "+1 650 123 4567" :EMAIL "[email protected]" :URL "" :NOTES "Nice Guy" :ID "e74e91ec-9d87-4624-8ef0-71d48dccf341" :title "Joe Blog" :mode first-section ...)))
#f(compiled-function (--data) #<bytecode -0x1d67545669d4fcbf>)((headline (:raw-value "Joe Blog" :begin 46 :end 212 :pre-blank 0 :contents-begin 57 :contents-end 212 :robust-begin nil :robust-end nil :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 46 :TEL "+1 650 123 4567" :EMAIL "[email protected]" :URL "" :NOTES "Nice Guy" :ID "e74e91ec-9d87-4624-8ef0-71d48dccf341" :title "Joe Blog" :mode first-section ...)))
mapc(#f(compiled-function (--data) #<bytecode -0x1d67545669d4fcbf>) ((headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) ...))
#f(compiled-function (--data) #<bytecode -0x1d67545669d4fcbf>)((org-data (:begin 1 :contents-begin 1 :contents-end 79758 :end 79760 :robust-begin 3 :robust-end 79756 :post-blank 2 :post-affiliated 1 :path nil :mode org-data ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) ...))
org-element-map((org-data (:begin 1 :contents-begin 1 :contents-end 79758 :end 79760 :robust-begin 3 :robust-end 79756 :post-blank 2 :post-affiliated 1 :path nil :mode org-data ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) (headline ...) ...) headline #f(compiled-function (headline) #<bytecode -0x16cf8aeb8c5a3451>))
org-contacts--candidates(("~/org/contacts.org"))
org-contacts--return-candidates(("~/org/contacts.org"))
org-contacts()
funcall-interactively(org-contacts)
command-execute(org-contacts record)
execute-extended-command(nil "org-contacts" "org")
funcall-interactively(execute-extended-command nil "org-contacts" "org")
command-execute(execute-extended-command)
emacs contacts org-mode
1个回答
0
投票

组织模式 9.7 的发布解决了问题。有关详细信息,请参阅 NickD 的评论。

© www.soinside.com 2019 - 2024. All rights reserved.