Been looking again at the task of getting the mode for go work with
XEmacs and need some help.
It uses functions from syntax.el which in GNU Emacs contains
"helper functions to find syntactic context". Oddly(!?) this file
contains at the bottom commented out XEmacs(!) compatibility functions
for "buffer-syntactic-contex" and "buffer-syntactic-context-dept"
which are found in font-lock.c. This could indicate that we have
overlapping functionality which in its turn might be better handled by
just using our APIs instead!?
I ask myself what is the proper thing to do here:
1. Ignore that we have these overlap and just get the functions in
syntax.el into XEmacs as is.
2. Flip the coin and produce compatibility functions for the
functions in syntax.el.
2. Just change the mode that triggered this, go-mode, to use the
functions we have in XEmacs.
 This is a problem of its own since we have syntax.el already but
with different functions. I have posted about it earlier but with no
response. (Adding this footnote in the hope of getting some attention
to that problem! ;-)
 The actual offending function used by go-mode is this:
(syntax-ppss (&optional pos)
"Parse-Partial-Sexp State at POS, defaulting to point.
The returned value is the same as `parse-partial-sexp' except that
the 2nd and 6th values of the returned state cannot be relied upon.
Point is at POS when this function returns."
What would be the XEmacs way to implement that?
XEmacs-Beta mailing list