Subject: bug#2730: Patch to fix "Wrong number of arguments" error in with-selected-frame in CVS Emacs

From: Stefan Monnier <[email-masked]>
Date: Fri, 20 Mar 2009 17:08:20 -0400

> 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.

C-h f select-frame RET:

   (select-frame frame &optional norecord)
   ...

so the problem you're trying to fix is elsewhere.

Actually, this second argument was added to select-frame specifically
for use in with-selected-frame ;-)

        Stefan