【问题标题】:Org Mode hangs when opening Agenda打开议程时组织模式挂起
【发布时间】:2021-01-20 18:41:53
【问题描述】:

每当我打开议程时,我都会遇到组织模式问题。

Emacs 在调用 Contacting host: fniessen.github.io:443 时卡住了(看起来像是一个 Org 主题存储库)。

当我在组织模式下打开时间戳时,有时也会发生同样的挂起。

我可以做些什么来调试/防止这种情况发生?

更新

运行pkill -SIGUSR2 emacs 后,我得到以下输出(调试器):

Debugger entered--entering a function:
* symbol-overlay-refresh(1 5 0)
  url-retrieve-synchronously("https://fniessen.github.io/org-html-themes/setup/t...")
  org-file-contents("https://fniessen.github.io/org-html-themes/setup/t..." :noerror)
  org--collect-keywords-1(("SETUPFILE" "FILETAGS" "TAGS") ("ARCHIVE" "CATEGORY" "COLUMNS" "PRIORITIES") nil ("/home/user/dev/emacs/reports...") nil)
  org-collect-keywords(("FILETAGS" "TAGS") ("ARCHIVE" "CATEGORY" "COLUMNS" "PRIORITIES"))
  org-set-regexps-and-options(tags-only)
  org-agenda-prepare-buffers(("~/dev/emacs/reports/..." "~/dev/emacs/contacts.org" "~/dev/emacs/emacs.org" "~/dev/emacs/todos.org" "~/dev/emacs/notes.org" ...))
  org-agenda-prepare("Day/Week")
  org-agenda-list(nil)
  funcall-interactively(org-agenda-list nil)
  call-interactively(org-agenda-list)
  org-agenda(nil)
  funcall-interactively(org-agenda nil)
  call-interactively(org-agenda nil nil)
  command-execute(org-agenda)

【问题讨论】:

    标签: emacs org-mode spacemacs


    【解决方案1】:

    原来我议程中​​的一个 Org 文件有一个不存在的 #+SETUPFILE 路径:

    #+SETUPFILE: https://fniessen.github.io/org-html-themes/setup/theme-readtheorg.setup
    

    必须改成https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup

    调试信息对于解决这个案例非常有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多