Ticket #2 (new defect)

Opened 3 years ago

Last modified 3 years ago

fabian_7_3.1 - xemacs compatibility for gnugo.el

Reported by: gunnar Assigned to: gnugo
Priority: normal Milestone: 3.8
Component: source Version:
Severity: normal Keywords:
Cc: patch: 1

Description

http://lists.gnu.org/archive/html/gnugo-devel/2005-01/msg00117.html

First patch "mouse-2-dont-insert-junk.patch":

When accidentally clicking the middle mouse button instead of the left
mouse button to make a move, junk text is inserted into the Goban. I
think the easiest way to prevent this is to bind the middle mouse
button to make a move as well.

Second patch "xemacs.patch":

This is a first try to make gnugo.el (from gnugo 3.7.2) work with
XEmacs.

First problem: 'split-string' apparently behaves differently in XEmacs
and Emacs, for example:

    XEmacs:
    (split-string "" " ") -> ("")

    Emacs
    (split-string "" " ") -> nil

I tried to solve that by introducing a compatibility wrapper
around split string.

Second problem:

XEmacs doesn't have a function 'window-edges'. But apparently
'window-edges' isn't really needed in gnugo.el, 'window-width' seems
to work fine for both XEmacs and Emacs.

This patch doesn't yet make the graphical interface work in XEmacs,
the functions for inline-images are quite a bit different as well. But
at least the ASCII text interface works in XEmacs with that patch.

If I have time, I'll try to make the graphics work as well.

Change History

06/06/05 01:12:15 changed by gunnar

What's the status of this patch? From the mailing list comments it's unclear to me.