emacs - Emacs elisp 回溯中奇怪的转义序列

标签 emacs elisp

当我使用 toggle-debug-on-error 并查看在 Backtrace 缓冲区中生成的回溯时,有很多看起来不应该存在的键转义,示例:

Debugger entered--Lisp error: (invalid-read-syntax "#")
  read(#<buffer emacs-config.org>)
  eval-defun-2()
  #[257 "\211\203
\303\304!\210\305?!\207   \204\306 \207\307\310!\311\211\306 \262\n\262)=\204+\207" [edebug-all-defs eval-expression-debug-on-error debug-on-error require edebug eval-defun eval-defun-2 make-symbol "t" nil] 6 2405975 "P"](nil)
  ad-Advice-eval-defun(#[257 "\211\203
\303\304!\210\305?!\207   \204\306 \207\307\310!\311\211\306 \262\n\262)=\204+\207" [edebug-all-defs eval-expression-debug-on-error debug-on-error require edebug eval-defun eval-defun-2 make-symbol "t" nil] 6 2405975 "P"] nil)

这是什么,如何删除它或将其转换为有用的东西?

最佳答案

那是字节编译码。请参阅 elisp-manual 部分“16.2 字节编译函数”。

实际的问题是您尝试读取-eval 一个组织文件(可能是每个load-file)。那是行不通的。 在 org-mode 中你可以在缓冲区上做的是 org-babel-execute-buffer。 此功能的文档是:

org-babel-execute-buffer is an interactive autoloaded compiled Lisp
function in `ob-core.el'.

It is bound to C-c C-v b, C-c C-v C-b.

(org-babel-execute-buffer &optional ARG)

Execute source code blocks in a buffer.
Call `org-babel-execute-src-block' on every source block in
the current buffer.

关于emacs - Emacs elisp 回溯中奇怪的转义序列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21944721/

相关文章:

emacs - 微调: `set-process-sentinel` | `set-process-filter` | `start-process`

emacs - 更改 emacs 上的初始目录,以及一些初学者的提示

emacs - 如何在 emacs 中添加缩进一个劣质方案(REPL)?

Emacs Lisp 打印输出

emacs - 如何在 Emacs 上自定义一个面孔,但仅当 hl-line 处于事件状态时?

emacs - 在 elisp 中按值添加两个列表

emacs - 组织模式 : how to filter the blocks to be tangle?

emacs - 如何删除杀死emacsclient缓冲区的提示?

oop - EIEIO 组合(通过自己的槽暴露包含对象的槽)