* Evaluating a scheme buffer
@ 2010-06-20 9:31 Mark Carter
2010-06-20 12:25 ` Pascal J. Bourguignon
2010-06-20 14:04 ` Xah Lee
0 siblings, 2 replies; 3+ messages in thread
From: Mark Carter @ 2010-06-20 9:31 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Evaluating a scheme buffer
2010-06-20 9:31 Evaluating a scheme buffer Mark Carter
@ 2010-06-20 12:25 ` Pascal J. Bourguignon
2010-06-20 14:04 ` Xah Lee
1 sibling, 0 replies; 3+ messages in thread
From: Pascal J. Bourguignon @ 2010-06-20 12:25 UTC (permalink / raw)
To: help-gnu-emacs
Mark Carter <alt.mcarter@gmail.com> writes:
> 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.
--
__Pascal Bourguignon__ http://www.informatimago.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Evaluating a scheme buffer
2010-06-20 9:31 Evaluating a scheme buffer Mark Carter
2010-06-20 12:25 ` Pascal J. Bourguignon
@ 2010-06-20 14:04 ` Xah Lee
1 sibling, 0 replies; 3+ messages in thread
From: Xah Lee @ 2010-06-20 14:04 UTC (permalink / raw)
To: help-gnu-emacs
On Jun 20, 2:31 am, Mark Carter <alt.mcar...@gmail.com> wrote:
> 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?
See:
• Elisp Lesson: Execute/Compile Current File
http://xahlee.org/emacs/elisp_run_current_file.html
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-20 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-20 9:31 Evaluating a scheme buffer Mark Carter
2010-06-20 12:25 ` Pascal J. Bourguignon
2010-06-20 14:04 ` Xah Lee
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.