In XEmacs 21.2 (beta20) "Yoko" [Lucid] (i686-pc-linux,
Mule) of Wed
Nov 10 1999 on
ulysses.jprc.com
When gutters are visible, changing buffers resets the match-data.
Here's an easier way to exhibit the bug. The only difference is
whether gutters are visible:
$ xemacs -vanilla -batch -eval '
(let (x y)
(setq gutter-visible-p (set-specifier default-gutter-visible-p nil))
(insert "foo")
(beginning-of-line)
(re-search-forward "foo")
(setq x (match-data t))
(split-window-vertically)
(other-window 1)
(setq y (match-data t))
(message "%s %s" x y))'
(1 4) (1 4)
$ xemacs -vanilla -batch -eval '
(let (x y)
(insert "foo")
(beginning-of-line)
(re-search-forward "foo")
(setq x (match-data t))
(split-window-vertically)
(other-window 1)
(setq y (match-data t))
(message "%s %s" x y))'
(1 4) (0 1)