From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fran Litterio Newsgroups: gmane.emacs.bugs Subject: bug#2730: Patch to fix "Wrong number of arguments" error in with-selected-frame in CVS Emacs Date: Fri, 20 Mar 2009 13:09:08 -0400 Message-ID: Reply-To: Fran Litterio , 2730@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364ece9e50a82f04658fffb0 X-Trace: ger.gmane.org 1237569889 22554 80.91.229.12 (20 Mar 2009 17:24:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2009 17:24:49 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 20 18:26:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LkiTD-000259-L7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Mar 2009 18:25:24 +0100 Original-Received: from localhost ([127.0.0.1]:59396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkiRq-0002ZV-Si for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Mar 2009 13:23:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkiRl-0002Vw-0h for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:23:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkiRg-0002Ph-47 for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:23:52 -0400 Original-Received: from [199.232.76.173] (port=49361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkiRf-0002Pe-Tm for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:23:47 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32775) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LkiRf-0003yB-FJ for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:23:47 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2KHNhEn010552; Fri, 20 Mar 2009 10:23:43 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2KHK3oW009367; Fri, 20 Mar 2009 10:20:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Fran Litterio Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Mar 2009 17:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2730 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12375690567830 (code B ref -1); Fri, 20 Mar 2009 17:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Mar 2009 17:10:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2KHArkF007823 for ; Fri, 20 Mar 2009 10:10:54 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkiFA-0005Ge-QR for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:10:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkiF5-0005Fh-OA for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:10:51 -0400 Original-Received: from [199.232.76.173] (port=39928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkiF5-0005Fc-KT for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:10:47 -0400 Original-Received: from mail-qy0-f116.google.com ([209.85.221.116]:54614) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkiF5-000243-3I for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2009 13:10:47 -0400 Original-Received: by qyk14 with SMTP id 14so1421232qyk.14 for ; Fri, 20 Mar 2009 10:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:received:message-id:subject :from:to:content-type; bh=wlF2hrB5wSfJXZUfH2WdAnBdvAJOF1KoWb6HbhB8bdk=; b=Jah9yl2MQS7mrUJU9DMCVngDqu48qEIXP3AcOMMiuhOnLf2PDKaLhc5rMHEFLLxJDe a+CUITXSUk1gwH9nQxjErnLCUnjcKr+meTDP0BDSkfI4aO3CSGr1DhMH4i+MgBhuCdNt YZkTN2YUJtNyKKSykxw2B+BySaGl2JgKfzVRg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=dabb477kOxip1wPk6/h/fsk8nbMmaXsIbb7ECZ3zYRVrIlitZ6v2rIevZYOCCZH7TQ 93xGbIe5pAxUizf73CUVvt+a2zoAG6+BSaEs48FtDQjG0N8YUIayt4AS3UDCIhkFMYQS 8a/8MDbOCFm1nlguA2JPSIZanPgAGANK5ZdRs= Original-Received: by 10.220.83.194 with SMTP id g2mr1857137vcl.74.1237569045046; Fri, 20 Mar 2009 10:10:45 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 20 Mar 2009 13:23:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26508 Archived-At: --0016364ece9e50a82f04658fffb0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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)))))) --0016364ece9e50a82f04658fffb0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The following bug exists in CVS Emacs as of 2009-03-20. In lisp/subr.el, th= e 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@gma= il.com


-= -- subr.el~=A0=A0=A0 2009-03-20 10:28:52.000492000 -0400
+++ subr.el=A0=A0=A0 20= 09-03-20 13:04:24.000046000 -0400
@@ -2584= ,10 +2584,10 @@
=A0=A0=A0=A0 `(let ((,o= ld-frame (selected-frame))
=A0=A0=A0=A0 = =A0=A0 (,old-buffer (current-buffer)))
=A0=A0=A0=A0=A0=A0=A0 (= unwind-protect
-=A0=A0=A0 =A0=A0 (progn (s= elect-frame ,frame 'norecord)
+=A0=A0=A0 =A0=A0 (prog= n (select-frame ,frame)
=A0=A0=A0=A0 =A0= =A0=A0 =A0 ,@body)
=A0=A0=A0=A0 =A0(when (= frame-live-p ,old-frame)
-=A0=A0=A0 =A0=A0= (select-frame ,old-frame 'norecord))
+=A0=A0=A0 =A0=A0 (sele= ct-frame ,old-frame))
=A0=A0=A0=A0 =A0(whe= n (buffer-live-p ,old-buffer)
=A0=A0=A0=A0 =A0=A0 (se= t-buffer ,old-buffer))))))
=A0

--0016364ece9e50a82f04658fffb0--