>>>> "Peter" == Peter B West
<pbwest(a)netscape.net> writes:
Peter> Is there any potted description of how to convert elisp
Peter> programs written for emacs to run under xemacs?
I have not seen such a thing, but I have made a hardcopy version of
the GNU Emacs Lisp Reference and then used the online version of the
XEmacs Lisp Reference in order to find the differences in behavior in
one vs. the other. Even then I miss things when porting sometimes (I
synchronized our browse-url.el with the FSF version some time back and
ended up introducing breakage in the process, which sucked).
Basically, I'd start out evaluating the file in XEmacs and then
looking for breakage. Some conditionals with featurep forms should
allow you to make a reasonable version of the file that will work in
both worlds. Don't forget to test a lot. :-)
In some cases, I've found it's better just to throw the stuff out and
start all over. I'd hope that's not the case with the file you want
to port.
http://www.interhack.net/pubs/applying-reusable-to-env/ describes a
case where I threw out the old stuff and completely replaced it with
the new. It was a win all the way around in that case.
I hope that helps.
--
Matt Curtin cmcurtin(a)interhack.net
http://www.interhack.net/people/cmcurtin/