Dear Bug Team!
Phillip Lord <p.lord(a)russet.org.uk> pointed this out on
comp.emacs.xemacs. He says:
on emacs...
(subseq '(1 2 3 4) 1 10)
-->
(2 3 4 nil nil nil nil nil nil)
while on xemacs you get an args out of range.
I think this is not a bug, but a documentation issue. Neither of the
emacs's describes what happens when the indexes are out of range. The
best fix would be to extend the documentation. Also uncommenting
"subseq" function on xemacs which is still in the source, and renaming
it to "cl-subseq" would make it easier.
Since this is part of the Common Lisp library, I checked out the
relevant Common Lisp spec. The X3J13 SUBSEQ-OUT-OF-BOUNDS cleanup notes
that the original spec did not address this issue, and requires that an
error be thrown. Since that is what we are doing, I agree with Phillip
that this is a documentation bug. Note that the relevant info page also
does not specify the behavior in this case.
--
Jerry James
http://www.ittc.ku.edu/~james/