1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

fix symbol-function

(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.)

* module/language/elisp/runtime.scm (symbol-function): Adjust function.
This commit is contained in:
Robin Templeton 2014-07-18 17:43:20 -04:00 committed by Christine Lemmer-Webber
parent 8a4905f2cb
commit 361db0dca8
No known key found for this signature in database
GPG key ID: 4BC025925FF8F4D3

View file

@ -158,10 +158,10 @@
value)
(define (symbol-function symbol)
(set! symbol (schemify symbol))
(ensure-present! function-slot-module symbol (lambda () #nil))
(let ((module function-slot-module))
(module-ref module symbol)))
(cond
((module-variable function-slot-module (schemify symbol))
=> variable-ref)
(else #nil)))
(define (set-symbol-function! symbol value)
(set! symbol (schemify symbol))