symprop.scm 827 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. (define-module (lang elisp primitives symprop)
  2. #:use-module (lang elisp internals evaluation)
  3. #:use-module (lang elisp internals fset)
  4. #:use-module (lang elisp internals null)
  5. #:use-module (lang elisp internals set)
  6. #:use-module (ice-9 optargs))
  7. ;;; {Elisp Exports}
  8. (fset 'put set-symbol-property!)
  9. (fset 'get (lambda->nil symbol-property))
  10. (fset 'set set)
  11. (fset 'set-default 'set)
  12. (fset 'boundp
  13. (lambda (sym)
  14. (->nil (module-defined? the-elisp-module sym))))
  15. (fset 'default-boundp 'boundp)
  16. (fset 'symbol-value
  17. (lambda (sym)
  18. (value sym #t)))
  19. (fset 'default-value 'symbol-value)
  20. (fset 'symbolp
  21. (lambda (object)
  22. (or (symbol? object)
  23. (keyword? object)
  24. %nil)))
  25. (fset 'local-variable-if-set-p
  26. (lambda* (variable #:optional buffer)
  27. %nil))
  28. (fset 'symbol-name symbol->string)