Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun wrap-fn (fn hook)
- (let ((wrapped-fn (gensym)))
- (setf (symbol-function wrapped-fn)
- #'(lambda (x)
- (progn
- (funcall fn)
- (stumpwm:remove-hook hook wrapped-fn))))
- wrapped-fn))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement