This is the mail archive of the
guile-emacs@sourceware.cygnus.com
mailing list for the Guile project.
Re: special forms (save-excursion)
- To: Kalle Olavi Niemitalo <tosi at ees2 dot oulu dot fi>
- Subject: Re: special forms (save-excursion)
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 14 Mar 2000 16:32:36 -0500
- Cc: guile-emacs at sourceware dot cygnus dot com
- References: <87n1o1p9kt.fsf@PC486.Niemitalo.LAN>
Kalle Olavi Niemitalo <tosi@ees2.oulu.fi> writes:
> How are you going to handle special forms in guile-emacs?
> They can't be wrapped as easily as normal functions.
> Will their C source be rewritten for Guile?
That is a hard task. Probably the best way is to write equivalent
macros in Scheme, as you did. For the moment, one easy way to do
this kind of tasks is to use the emacs-eval procedure:
(emacs-eval '(save-excursion
(goto-char (point-min))
(insert "hah")))
Actually this might be better for efficiency, though not a good
approach. I don't have a good idea about this yet. I'll try to
think later.