(goto-char
(if (and eoh (or (< eoh here) (= bol here)))
eoh bol)))
- (if (and (boundp 'visual-line-mode) visual-line-mode)
+ (if (and (not (featurep 'xemacs))
+ (boundp 'visual-line-mode) visual-line-mode)
(beginning-of-visual-line n)
(beginning-of-line n))))