guile.scm 605 B

123456789101112131415161718192021
  1. (define-module (lang elisp primitives guile)
  2. #:use-module (lang elisp internals fset))
  3. ;;; {Importing Guile procedures into Elisp}
  4. ;; It may be worthwhile to import some Guile procedures into the Elisp
  5. ;; environment. For now, though, we don't do this.
  6. (if #f
  7. (let ((accessible-procedures
  8. (apropos-fold (lambda (module name var data)
  9. (cons (cons name var) data))
  10. '()
  11. ""
  12. (apropos-fold-accessible (current-module)))))
  13. (for-each (lambda (name var)
  14. (if (procedure? var)
  15. (fset name var)))
  16. (map car accessible-procedures)
  17. (map cdr accessible-procedures))))