Skip to content

Instantly share code, notes, and snippets.

@myuhe
Created August 7, 2014 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myuhe/2c2e71775951da22dabc to your computer and use it in GitHub Desktop.
Save myuhe/2c2e71775951da22dabc to your computer and use it in GitHub Desktop.
(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 (f prop value) (put f prop value))
"Set function F's property PROP to VALUE.
The namespace for PROP is shared with symbols.
So far, F can only be a symbol, not a lambda expression.")
(function-put 'defmacro 'doc-string-elt 3)
(function-put 'defmacro 'lisp-indent-function 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment