emacs - 组织协议(protocol)捕获工作了几个月,然后突然停止,没有任何正确的错误消息

标签 emacs org-mode emacsclient

我有两个 emacs 设置在 chemacs2 的帮助下运行,一个使用 doom 配置,另一个使用 vannila emacs,在组织模式下配置很少。这已经运行了几个月了,今天我收到以下错误。即使使用 (setq debug-on-error t) 我也没有收到除此之外的任何消息/信息。

$ emacsclient -c --alternate-editor='' org-protocol://capture://link/title/encoded
Waiting for Emacs...
>>> *ERROR*: Wrong type argument: arrayp, nil  <<<

这是启动顺序

$ emacsclient -c --alternate-editor='' "org-protocol://capture://link/title/encoded"
emacsclient: connect: Connection refused

Warning: due to a long standing Gtk+ bug
https://gitlab.gnome.org/GNOME/gtk/issues/221
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Loading /etc/emacs/site-start.d/00debian.el (source)...
Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /home/vanangamudi/kadal/aalar/emacs/.emacs.d/chemacs.el (source)...
Loading /home/vanangamudi/emacs/vanilla.d/init.el (source)...
Followed link to /home/vanangamudi/kadal/aalar/emacs/vanilla.d/config.org
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Wrote /home/vanangamudi/emacs/vanilla.d/config.el
Tangled 7 code blocks from config.org
Loading /home/vanangamudi/emacs/vanilla.d/config.el (source)...
Loading /home/vanangamudi/emacs/vanilla.d/config.el (source)...done
Loaded ~/emacs/vanilla.d/config.el
Loading /home/vanangamudi/emacs/vanilla.d/init.el (source)...done
Loading /home/vanangamudi/kadal/aalar/emacs/.emacs.d/chemacs.el (source)...done
Loading /home/vanangamudi/emacs/vanilla.d/init.el (source)...
Loading /home/vanangamudi/emacs/vanilla.d/config.el (source)...
Loading /home/vanangamudi/emacs/vanilla.d/config.el (source)...done
Loaded ~/emacs/vanilla.d/config.el
Loading /home/vanangamudi/emacs/vanilla.d/init.el (source)...done
Starting Emacs daemon.
Emacs daemon should have started, trying to connect again
Waiting for Emacs...
*ERROR*: Wrong type argument: arrayp, nil

最佳答案

我认为您使用的命令格式错误。试试这个:

emacsclient "org-protocol://capture?template=L&url=www.test.com/SomeLink&title=Something&body=Site"

请注意,我定义了要在 URL 中使用的模板键。确保您有一个包含该 key 的模板。我用的是:

     ("L" "Protocol Link" entry (file+headline "~/capture-test.org" "Captured")
      "* %? [[%:link][%:description]] \nCaptured On: %U")

还值得阅读 org-protocol-capture 函数的文档(通过输入 C-h f org-protocol-capture)。

关于emacs - 组织协议(protocol)捕获工作了几个月,然后突然停止,没有任何正确的错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65075037/

相关文章:

用于 Markdown 和 Python 的 Emacs 多模式

Emacs、org、beamer - `beamer' 中的类 `org-export-latex-classes' 没有定义

emacs - 使 org-agenda-list 隐藏安排在未来的项目

ubuntu - 如何在 emacs 27、ubuntu 18 上启动 emacsclient

emacs - 在状态行中显示功能名称

macos - 如何在OS X的emacs 23中安装新模式?

emacs - 如何在组织模式下将表字段格式设置为货币

emacs - 在终端中打开 emacsclient 工作但不适用于 Automator

Emacsclient 不响应鼠标点击

emacs - 我是否需要了解Emacs Lisp才能使用GNU/Emacs