Skip to content

Instantly share code, notes, and snippets.

@sigma
Last active July 18, 2017 05:03
Show Gist options
  • Save sigma/8376828 to your computer and use it in GitHub Desktop.
Save sigma/8376828 to your computer and use it in GitHub Desktop.
noflet based on cl-letf
(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))
(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))
;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