File size: 605 Bytes
f65fe85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(define-module (lang elisp primitives guile)
  #:use-module (lang elisp internals fset))

;;; {Importing Guile procedures into Elisp}

;; It may be worthwhile to import some Guile procedures into the Elisp
;; environment.  For now, though, we don't do this.

(if #f
    (let ((accessible-procedures
	   (apropos-fold (lambda (module name var data)
			   (cons (cons name var) data))
			 '()
			 ""
			 (apropos-fold-accessible (current-module)))))
      (for-each (lambda (name var)
		  (if (procedure? var)
		      (fset name var)))
		(map car accessible-procedures)
		(map cdr accessible-procedures))))