GNU bug report logs - #2730
Patch to fix "Wrong number of arguments" error in with-selected-frame in CVS Emacs

Previous Next

Package: emacs;

Reported by: Fran Litterio <flitterio <at> gmail.com>

Date: Fri, 20 Mar 2009 17:20:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Fran Litterio <flitterio <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
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 part 1 (text/plain, inline)]
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 <at> 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))))))
[Message part 2 (text/html, inline)]

This bug report was last modified 16 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.