The following bug exists in CVS Emacs as of 2009-03-20. In lisp/subr.el, the definition of with-selected-frame has a bug where select-frame is called with two arguments instead of one. This patch fixes that.
--
Fran Litterio
flitterio@gmail.com


--- subr.el~    2009-03-20 10:28:52.000492000 -0400
+++ subr.el    2009-03-20 13:04:24.000046000 -0400
@@ -2584,10 +2584,10 @@
     `(let ((,old-frame (selected-frame))
        (,old-buffer (current-buffer)))
        (unwind-protect
-       (progn (select-frame ,frame 'norecord)
+       (progn (select-frame ,frame)
           ,@body)
      (when (frame-live-p ,old-frame)
-       (select-frame ,old-frame 'norecord))
+       (select-frame ,old-frame))
      (when (buffer-live-p ,old-buffer)
        (set-buffer ,old-buffer))))))