【问题标题】:symbol's function definition is void: incf (common lisp function in emacs24)symbol 的函数定义为 void:incf(emacs24 中的常用 lisp 函数)
【发布时间】:2014-03-01 20:17:23
【问题描述】:

我已经下载了一个 emacs 包,用于使用 autopep8 格式化 python 代码。

这个包名为 py-autopep8

this is the lisp code

你能在第 78 行看到这个通用的 lisp 函数吗

(incf line-offset len)

然后,当我打开 emacs24 并想保存缓冲区时,我在 emacs shell 中有这个

Symbol的函数定义无效:incf

因此,任何人都知道如何修复此错误,以获取 emacs 嘴唇中常见的 lisp 定义。

【问题讨论】:

    标签: elisp common-lisp emacs24 pep8


    【解决方案1】:

    标准的 Common Lisp 函数在 cl 包中实现,所以你可以放:

    (require 'cl)
    

    在您的初始化文件中。

    更准确地说,cl-incfcl-lib 中实现,cl 包别名 incfcl-incf

    最佳做法是包作者要求cl-lib 并使用cl-incfcl-lib 表单是首选,因为它们在自己的命名空间中被隔离。

    【讨论】:

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