summaryrefslogtreecommitdiff
path: root/module/language/elisp/runtime.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/language/elisp/runtime.scm')
-rw-r--r--module/language/elisp/runtime.scm51
1 files changed, 26 insertions, 25 deletions
diff --git a/module/language/elisp/runtime.scm b/module/language/elisp/runtime.scm
index 3a041568b..bddfa82e4 100644
--- a/module/language/elisp/runtime.scm
+++ b/module/language/elisp/runtime.scm
@@ -2,19 +2,20 @@
;;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
;;;
-;;; This library is free software; you can redistribute it and/or
-;;; modify it under the terms of the GNU Lesser General Public
-;;; License as published by the Free Software Foundation; either
-;;; version 3 of the License, or (at your option) any later version.
+;;; This library is free software; you can redistribute it and/or modify
+;;; it under the terms of the GNU Lesser General Public License as
+;;; published by the Free Software Foundation; either version 3 of the
+;;; License, or (at your option) any later version.
;;;
-;;; This library is distributed in the hope that it will be useful,
-;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; This library is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;;; Lesser General Public License for more details.
;;;
;;; You should have received a copy of the GNU Lesser General Public
;;; License along with this library; if not, write to the Free Software
-;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+;;; 02110-1301 USA
;;; Code:
@@ -28,45 +29,45 @@
runtime-error macro-error)
#:export-syntax (built-in-func built-in-macro prim))
-; This module provides runtime support for the Elisp front-end.
+;;; This module provides runtime support for the Elisp front-end.
-; The reserved value to mean (when eq?) void.
+;;; The reserved value to mean (when eq?) void.
(define void (list 42))
-; Values for t and nil. (FIXME remove this abstraction)
+;;; Values for t and nil. (FIXME remove this abstraction)
(define nil-value #nil)
(define t-value #t)
-; Modules for the binding slots.
-; Note: Naming those value-slot and/or function-slot clashes with the
-; submodules of these names!
+;;; Modules for the binding slots. Note: Naming those value-slot and/or
+;;; function-slot clashes with the submodules of these names!
(define value-slot-module '(language elisp runtime value-slot))
(define function-slot-module '(language elisp runtime function-slot))
-; Report an error during macro compilation, that means some special compilation
-; (syntax) error; or report a simple runtime-error from a built-in function.
+;;; Report an error during macro compilation, that means some special
+;;; compilation (syntax) error; or report a simple runtime-error from a
+;;; built-in function.
(define (macro-error msg . args)
(apply error msg args))
(define runtime-error macro-error)
-; Convert a scheme boolean to Elisp.
+;;; Convert a scheme boolean to Elisp.
(define (elisp-bool b)
(if b
t-value
nil-value))
-; Routines for access to elisp dynamically bound symbols.
-; This is used for runtime access using functions like symbol-value or set,
-; where the symbol accessed might not be known at compile-time.
-; These always access the dynamic binding and can not be used for the lexical!
+;;; Routines for access to elisp dynamically bound symbols. This is used
+;;; for runtime access using functions like symbol-value or set, where
+;;; the symbol accessed might not be known at compile-time. These always
+;;; access the dynamic binding and can not be used for the lexical!
(define (ensure-fluid! module sym)
(let ((intf (resolve-interface module))
@@ -94,8 +95,8 @@
(fluid-set! (module-ref resolved sym) value)
value))
-; Define a predefined function or predefined macro for use in the function-slot
-; and macro-slot modules, respectively.
+;;; Define a predefined function or predefined macro for use in the
+;;; function-slot and macro-slot modules, respectively.
(define-syntax built-in-func
(syntax-rules ()
@@ -109,8 +110,8 @@
((_ name value)
(define-public name value))))
-; Call a guile-primitive that may be rebound for elisp and thus needs absolute
-; addressing.
+;;; Call a guile-primitive that may be rebound for elisp and thus needs
+;;; absolute addressing.
(define-syntax prim
(syntax-rules ()