Alex Schroeder writes:
 Beyond requiring 'overlay, there is other compatibility cruft as
 well.  Here's the entire list of XEmacs related code.  I've tried to
 find equivalents for line-beginning-position and line-end-position in
 the XEmacs Lispref manual but couldn't find anything.  A defalias
 would be nicer, of course.  And if you know of a simple workaround to
 the mouse-2 / button2 problem, please let me know. 
Based on the code you've written, point-at-bol and point-at-eol should
do what you want. I think they're fairly recent, so they might not be
in the Lispref.
Robert
--