Last active
July 18, 2017 05:03
-
-
Save sigma/8376828 to your computer and use it in GitHub Desktop.
noflet based on cl-letf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro noflet (bindings &rest body) | |
`(dflet ,(mapcar | |
(lambda (x) | |
(list (car x) (cadr x) | |
`(let ((this-fn ,(symbol-function (car x)))) | |
,@(cddr x)))) | |
bindings) | |
,@body)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro noflet (bindings &rest body) | |
`(dflet ,(mapcar | |
(lambda (x) | |
(list (car x) (cadr x) | |
`(let ((this-fn ,(symbol-function (car x)))) | |
,@(cddr x)))) | |
bindings) | |
,@body)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;ELC | |
;;; Compiled | |
;;; in Emacs version 24.3.50.1 | |
;;; with all optimizations. | |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. | |
;;; This file does not contain utf-8 non-ASCII characters, | |
;;; and so can be loaded in Emacs versions earlier than 23. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(defalias 'noflet '(macro . #[(bindings &rest body) "\302\303\304\" BB\207" [bindings body dflet mapcar #[(x) "@\211A@\262\301\302@KDC\211AA\262BBE\207" [x let this-fn] 6]] 4])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment