Function: scheme-expand-current-form

scheme-expand-current-form is an interactive and byte-compiled function defined in cmuscheme.el.gz.

Signature

(scheme-expand-current-form)

Documentation

Macro-expand the form at point in the inferior Scheme process.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cmuscheme.el.gz
(defun scheme-expand-current-form ()
  "Macro-expand the form at point in the inferior Scheme process."
  (interactive)
  (let ((current-form (scheme-form-at-point)))
    (if current-form
        (progn
          (comint-send-string (scheme-proc)
                              (format
                               scheme-macro-expand-command
                               current-form))
          (comint-send-string (scheme-proc) "\n"))
      (error "Not at a form"))))