Hi all
I was trying to get rebox2 to work on XEmacs, but we lack some
compatibility functions. Let me add that I am on the road and since my
laptop OS is Win7, I don't have access to an XEmacs more recent than
21.5.29. (Vin, would you have some time to provide new binaries?)
I can report partial success after defining the following
aliases/defuns. Maybe this is useful to some people.
;; Is there any reason for having both, #'move-beginning-of-line and
;; #'beginning-of-line? I believe Mike observed similar when porting
;; org-mode.
(unless (fboundp 'move-beginning-of-line)
(defalias 'move-beginning-of-line 'beginning-of-line))
(unless (fboundp 'move-end-of-line)
(defalias 'move-end-of-line 'end-of-line))
(unless (fboundp 'use-region-p)
(defalias 'use-region-p 'region-active-p))
(unless (fboundp 'looking-at-p)
(defun looking-at-p (regexp &optional buffer)
"This predicate function works like looking-at, but without updating
the match data."
(save-match-data
(looking-at regexp buffer))))
What's still missing are these:
#'called-interactively-p
Somehow this patch got never applied:
http://calypso.tux.org/pipermail/xemacs-patches/2011-August/010958.html
#'looking-back
#'sentence-end
This is probably due to a bug in rebox2.el here:
,----[ line 2649 ]
| (re-search-forward (concat (sentence-end)
| "$") (point-at-eol) t))
`----
Thanks
Marcus
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta