use-package icon indicating copy to clipboard operation
use-package copied to clipboard

Symbol's function definition is void: function-put

Open GiovanH opened this issue 3 years ago • 0 comments

Trying to install on emacs 24.3, but when I load emacs with use-package installed as a package, I get the startup error eval-buffer: Symbol's function definition is void: function-put.

I assumed this was a version issue, but the package says it should support 24.3.

--debug-init doesn't print any additional information.

Manually adding in

(defalias 'function-put
  ;; We don't want people to just use `put' because we can't conveniently
  ;; hook into `put' to remap old properties to new ones.  But for now, there's
  ;; no such remapping, so we just call `put'.
  #'(lambda (function prop value)
      "Set FUNCTION's property PROP to VALUE.
The namespace for PROP is shared with symbols.
So far, FUNCTION can only be a symbol, not a lambda expression."
      (put function prop value)))
(function-put 'use-package 'lisp-indent-function '1)

patches the problem.

GiovanH avatar Jan 05 '22 06:01 GiovanH