function-slot.scm 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ;;; Guile Emacs Lisp
  2. ;;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
  3. ;;;
  4. ;;; This library is free software; you can redistribute it and/or
  5. ;;; modify it under the terms of the GNU Lesser General Public
  6. ;;; License as published by the Free Software Foundation; either
  7. ;;; version 3 of the License, or (at your option) any later version.
  8. ;;;
  9. ;;; This library is distributed in the hope that it will be useful,
  10. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. ;;; Lesser General Public License for more details.
  13. ;;;
  14. ;;; You should have received a copy of the GNU Lesser General Public
  15. ;;; License along with this library; if not, write to the Free Software
  16. ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. (define-module (language elisp runtime function-slot)
  18. #:use-module ((language elisp compile-tree-il)
  19. #:select
  20. ((compile-progn . progn)
  21. (compile-eval-when-compile . eval-when-compile)
  22. (compile-if . if)
  23. (compile-defconst . defconst)
  24. (compile-defvar . defvar)
  25. (compile-setq . setq)
  26. (compile-let . let)
  27. (compile-flet . flet)
  28. (compile-labels . labels)
  29. (compile-let* . let*)
  30. (compile-guile-ref . guile-ref)
  31. (compile-guile-primitive . guile-primitive)
  32. (compile-function . function)
  33. (compile-defun . defun)
  34. (compile-defmacro . defmacro)
  35. (#{compile-`}# . #{`}#)
  36. (compile-quote . quote)
  37. (compile-%funcall . %funcall)
  38. (compile-%set-lexical-binding-mode
  39. . %set-lexical-binding-mode)))
  40. #:duplicates (last)
  41. ;; special operators
  42. #:re-export (progn
  43. eval-when-compile
  44. if
  45. defconst
  46. defvar
  47. setq
  48. let
  49. flet
  50. labels
  51. let*
  52. guile-ref
  53. guile-primitive
  54. function
  55. defun
  56. defmacro
  57. #{`}#
  58. quote
  59. %funcall
  60. %set-lexical-binding-mode)
  61. #:pure)