Tuesday, July 27, 2010

Evaluating a scheme buffer - gnu.emacs.help | Google Groups

Evaluating a scheme buffer - gnu.emacs.help | Google Groups

> I would like to write an emacs function to evaluate a buffer that it
> in scheme mode; let's call it eval-scheme-buffer . Even better would
> be to write a function eval-buffer that evaluates a buffer in whatever
> mode the buffer is in (like Common Lisp). I am using inferior modes
> here.

> How is this done?

Have a look at inf-lisp.el where lisp-eval-region and others are defined.

No comments: