savehist-trim-history
savehist-trim-history is a compiled Lisp function in `savehist.el
'.
(savehist-trim-history VALUE)
Retain only the first `history-length' items in VALUE.
Only used under XEmacs, which doesn't (yet) implement automatic
trimming of history lists to `history-length' items.