symbol's function definition is void: incf (common lisp function in emacs24)
Asked Answered
E

1

6

I have download a emacs package for to format python codes with autopep8.

This package is named py-autopep8

this is the lisp code

can you se in the line number 78 this common lisp function

(incf line-offset len)

then, when I open emacs24 and I want to save the buffer I have this in the emacs shell

Symbol's function definiton is void: incf

Anybody know how to fix this error, therefore, to get the common lisp definitions in emacs lips.

Erdrich answered 1/3, 2014 at 20:17 Comment(0)
P
7

The standard Common Lisp functions are implemented in the cl package, so you could put:

(require 'cl)

in your init file.

More precisely, cl-incf is implemented in cl-lib and the cl package aliases incf to cl-incf.

Best practice would be for the package author to require cl-lib and use cl-incf; the cl-lib forms are preferred because they're isolated in their own namespace.

Packer answered 1/3, 2014 at 20:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.