--- /home/steve/xemacs-21.5.31/lisp/frame.el 2011-06-22 17:06:55.000000000 -0400 +++ /home/steve/xemacs-21.5.31/lisp/frame_modified.el 2011-06-22 17:07:25.000000000 -0400 @@ -602,7 +602,7 @@ (next (next-frame this 'visible-nomini))) ;; then search iconified frames (if (eq this next) - (setq next (next-frame 'visible-iconic-nomini))) + (setq next (next-frame this 'visible-iconic-nomini))) (if (eq this next) ;; otherwise, make a new frame (make-frame)