In addition, there was a more serious error in listn: it consed the
arguments in the wrong order: from first to last, instead of the other
way around. This caused incorrect frame title to be displayed, but
also had other manifestations: e.g., memory-use-counts would display
its results in the reversed order.
(I fixed listn in revision 109230.)
Dmitry, I wonder how you tested listn, that left these problems
undetected. Just stepping into memory-use-counts with a debugger and
comparing the values of the variables with the list returned to Lisp
should have shown the problem very clearly.