Skip to content

Instantly share code, notes, and snippets.

@mpontus
Created February 13, 2015 03:07
Show Gist options
  • Save mpontus/1a35a09bb71763478b1f to your computer and use it in GitHub Desktop.
Save mpontus/1a35a09bb71763478b1f to your computer and use it in GitHub Desktop.
(defun names-introspect-replace-labels (fn form)
(let* ((vars names--var-list)
(bindings (--> (-map 'symbol-value vars)
(-interleave vars it)
(-partition 2 it))))
`(lexical-let ,bindings ',@form)))
(lexical-let ((names--name new-)
(names--regexp "\\`new-")
(names--bound nil)
(names--version nil)
(names--package nil)
(names--group-parent nil)
(names--macro nil)
(names--current-run 0)
(names--fbound nil)
(names--keywords nil)
(names--local-vars nil)
(names--protection "\\`::"))
'defuntest
nil
names--name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment