Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 791
ljofre Avatar asked Mar 01 '14 20:03

ljofre


1 Answers

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.

like image 155
Alp Avatar answered Oct 28 '22 20:10

Alp